]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: avoid setting TCP_CLOSE state twice
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Thu, 9 Mar 2023 14:50:03 +0000 (15:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:34:02 +0000 (13:34 +0100)
commitde4c1e51b19a0bcf188e3cd368dfa7ce232d2106
tree6a53f5d3d56f466860d058a97c28c401c837cccd
parent6b69656d79783684616967060b09ae46be4b9f58
mptcp: avoid setting TCP_CLOSE state twice

commit 244cc9546459f0bee5d5166b2cfc30be5327f089 upstream.

tcp_set_state() is called from tcp_done() already.

There is then no need to first set the state to TCP_CLOSE, then call
tcp_done().

Fixes: 1d77da55bfcb ("mptcp: fix fallback for MP_JOIN subflows")
Cc: stable@vger.kernel.org
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/362
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mptcp/subflow.c