mptcp: fix poll after shutdown
authorPaolo Abeni <pabeni@redhat.com>
Thu, 11 Feb 2021 23:30:38 +0000 (15:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2021 02:30:54 +0000 (18:30 -0800)
commitdd913410b0a442a53d41a9817ed2208850858e99
treed676bc5cce26c517b6da357e925d753a3f2a062e
parent15cc10453398c22f78f6c2b897119ecce5e5dd89
mptcp: fix poll after shutdown

The current mptcp_poll() implementation gives unexpected
results after shutdown(SEND_SHUTDOWN) and when the msk
status is TCP_CLOSE.

Set the correct mask.

Fixes: 8edf08649eed ("mptcp: rework poll+nospace handling")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c