]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
MPTCP: fix lock class name family in pm_nl_create_listen_socket
authorLi Xiasong <lixiasong1@huawei.com>
Thu, 19 Mar 2026 11:21:59 +0000 (19:21 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Mar 2026 16:37:48 +0000 (09:37 -0700)
commit7ab4a7c5d969642782b8a5b608da0dd02aa9f229
treee81b01f34043a820153bd1ed3f0e32e73517c0fe
parent614aefe56af8e13331e50220c936fc0689cf5675
MPTCP: fix lock class name family in pm_nl_create_listen_socket

In mptcp_pm_nl_create_listen_socket(), use entry->addr.family
instead of sk->sk_family for lock class setup. The 'sk' parameter
is a netlink socket, not the MPTCP subflow socket being created.

Fixes: cee4034a3db1 ("mptcp: fix lockdep false positive in mptcp_pm_nl_create_listen_socket()")
Signed-off-by: Li Xiasong <lixiasong1@huawei.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20260319112159.3118874-1-lixiasong1@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_kernel.c