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)
commit13a9499e833387fcc7a53915bbe5cddf3c336b59
treebdf5dd71ea6b3d74129b9d77a74be6ac3e5b1bf7
parent25537d71e2d007faf42a244a75e5a2bb7c356234
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: 76e2a55d1625 ("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