]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf829d81a832acc9f0e5ac7358b52c2936ad52d38
treed676bc5cce26c517b6da357e925d753a3f2a062e
parent70db1667c2749325ea39e8ca91e3f76ec49e8699
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: 45b8e67d5b7d ("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