summaryrefslogtreecommitdiff
path: root/net/netlink/af_netlink.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-21 08:51:39 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-21 08:51:39 +0200
commitec8c17e5ecb4a5a74069687ccb6d2cfe1851302e (patch)
tree61afbd857d73f6c208d672896fd8564b92b5c1dd /net/netlink/af_netlink.c
parentf5927d832bb823dbe827603a083f225911208cb6 (diff)
parent42f7652d3eb527d03665b09edac47f85fb600924 (diff)
downloadlwn-ec8c17e5ecb4a5a74069687ccb6d2cfe1851302e.tar.gz
lwn-ec8c17e5ecb4a5a74069687ccb6d2cfe1851302e.zip
Merge 6.12-rc4 into tty-next
We need the tty/serial fixes in here as well Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r--net/netlink/af_netlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 0b7a89db3ab7..0a9287fadb47 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -2136,8 +2136,9 @@ void __netlink_clear_multicast_users(struct sock *ksk, unsigned int group)
{
struct sock *sk;
struct netlink_table *tbl = &nl_table[ksk->sk_protocol];
+ struct hlist_node *tmp;
- sk_for_each_bound(sk, &tbl->mc_list)
+ sk_for_each_bound_safe(sk, tmp, &tbl->mc_list)
netlink_update_socket_mc(nlk_sk(sk), group, 0);
}