]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mptcp: use mptcp_schedule_work instead of open-coding it
authorPaolo Abeni <pabeni@redhat.com>
Tue, 11 Apr 2023 20:42:09 +0000 (22:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:36:59 +0000 (12:36 +0200)
commit1afbb34456062561672f7a6e999ca63e16a9ff6a
treea01d45790314746fc5aee252eabb08d0967633ff
parenta9ebb8ed5569fe85a30a795e967cf4595a503040
mptcp: use mptcp_schedule_work instead of open-coding it

commit a5cb752b125766524c921faab1a45cc96065b0a7 upstream.

Beyond reducing code duplication this also avoids scheduling
the mptcp_worker on a closed socket on some edge scenarios.

The addressed issue is actually older than the blamed commit
below, but this fix needs it as a pre-requisite.

Fixes: ba8f48f7a4d7 ("mptcp: introduce mptcp_schedule_work")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
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/options.c
net/mptcp/subflow.c