mptcp: more accurate NL event generation
authorPaolo Abeni <pabeni@redhat.com>
Tue, 25 Jul 2023 18:34:56 +0000 (11:34 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Jul 2023 23:48:54 +0000 (16:48 -0700)
commit21d9b73a7d5241905367098d260a3c68b811da32
treef49ca03ee5951bba05de25cc5475291ec61d5ee9
parent016e7ba47f33064fbef8c4307a2485d2669dfd03
mptcp: more accurate NL event generation

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>
net/mptcp/protocol.c