mptcp: avoid setting TCP_CLOSE state twice
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Thu, 9 Mar 2023 14:50:03 +0000 (15:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Mar 2023 05:42:56 +0000 (21:42 -0800)
commit3ba14528684f528566fb7d956bfbfb958b591d86
tree4823eeea146ce7394f262b977a2f35f2ecdc2337
parent822467a48e938e661965d09df5fcac66f7291050
mptcp: avoid setting TCP_CLOSE state twice

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: d582484726c4 ("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>
net/mptcp/subflow.c