]> 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)
commit4df6af6549ff052411e99d69ac9806bce0aba3ef
treed676bc5cce26c517b6da357e925d753a3f2a062e
parentd9b41d28dae47ebced3aebadac93cac9ebd94ac8
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: 8dee51c9f3d1 ("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