From: Paolo Abeni Date: Thu, 30 Apr 2020 13:01:55 +0000 (+0200) Subject: mptcp: initialize the data_fin field for mpc packets X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a77895dbc0ad0400e377e8f26567820b3658e30e;p=linux.git mptcp: initialize the data_fin field for mpc packets When parsing MPC+data packets we set the dss field, so we must also initialize the data_fin, or we can find stray value there. Fixes: 9a19371bf029 ("mptcp: fix data_fin handing in RX path") Signed-off-by: Paolo Abeni Signed-off-by: David S. Miller --- diff --git a/net/mptcp/options.c b/net/mptcp/options.c index 9486720c32566..45497af23906c 100644 --- a/net/mptcp/options.c +++ b/net/mptcp/options.c @@ -858,6 +858,7 @@ void mptcp_incoming_options(struct sock *sk, struct sk_buff *skb, mpext->subflow_seq = 1; mpext->dsn64 = 1; mpext->mpc_map = 1; + mpext->data_fin = 0; } else { mpext->data_seq = mp_opt.data_seq; mpext->subflow_seq = mp_opt.subflow_seq;