]> git.itanic.dy.fi Git - linux-stable/commit
mptcp: more accurate NL event generation
authorPaolo Abeni <pabeni@redhat.com>
Tue, 25 Jul 2023 18:34:56 +0000 (11:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:26:12 +0000 (10:26 +0200)
commitc58951ccef60301225f0706a45802e19d8fc03e4
tree40abe73610398badcbeea45397b7f096abac00fe
parent8aba7fb2544ac6de5ce18a66dd0b6f8c5ca6433c
mptcp: more accurate NL event generation

commit 21d9b73a7d5241905367098d260a3c68b811da32 upstream.

Currently the mptcp code generate a "new listener" event even
if the actual listen() syscall fails. Address the issue moving
the event generation call under the successful branch.

Cc: stable@vger.kernel.org
Fixes: f8c9dfbd875b ("mptcp: add pm listener events")
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20230725-send-net-20230725-v1-2-6f60fe7137a9@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mptcp/protocol.c