]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: fix locking in mptcp_disconnect()
authorPaolo Abeni <pabeni@redhat.com>
Thu, 14 Jan 2021 15:37:37 +0000 (16:37 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Jan 2021 19:25:21 +0000 (11:25 -0800)
commit05f6bb141a3e92eef64453c91df2c78caee76200
treebdf5dd71ea6b3d74129b9d77a74be6ac3e5b1bf7
parentb1ae1d4691b5dd444bf8ce5cc38bd9c6fbb58973
mptcp: fix locking in mptcp_disconnect()

tcp_disconnect() expects the caller acquires the sock lock,
but mptcp_disconnect() is not doing that. Add the missing
required lock.

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Fixes: f15cce8f0221 ("mptcp: better msk-level shutdown.")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/r/f818e82b58a556feeb71dcccc8bf1c87aafc6175.1610638176.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c