Skip to content

Commit c159590

Browse files
q2vengregkh
authored andcommitted
mptcp: Call dst_release() in mptcp_active_enable().
[ Upstream commit 108a86c ] mptcp_active_enable() calls sk_dst_get(), which returns dst with its refcount bumped, but forgot dst_release(). Let's add missing dst_release(). Cc: stable@vger.kernel.org Fixes: 27069e7 ("mptcp: disable active MPTCP in case of blackhole") Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com> Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Reviewed-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20250916214758.650211-7-kuniyu@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Stable-dep-of: 833d431 ("mptcp: reset blackhole on success with non-loopback ifaces") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4388b7f commit c159590

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

net/mptcp/ctrl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ void mptcp_active_enable(struct sock *sk)
385385

386386
if (dst && dst->dev && (dst->dev->flags & IFF_LOOPBACK))
387387
atomic_set(&pernet->active_disable_times, 0);
388+
389+
dst_release(dst);
388390
}
389391
}
390392

0 commit comments

Comments
 (0)