Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

netlink: update outdated comment

The function netlink_clear_multicast_users() was removed as unused
in commit 2173f8d953e7 ("netlink: cleanup tap related functions").
Update the comment in netlink_change_ngroups() to remove the stale
reference, replacing it with a general description of the behavior
while preserving the warning.

Assisted-by: unnamed:deepseek-v3.2 coccinelle
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
Link: https://patch.msgid.link/20260311133519.688-1-kexinsun@smail.nju.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Kexin Sun and committed by
Jakub Kicinski
8f921f61 886d5609

+2 -2
+2 -2
net/netlink/af_netlink.c
··· 2108 2108 * This changes the number of multicast groups that are available 2109 2109 * on a certain netlink family. Note that it is not possible to 2110 2110 * change the number of groups to below 32. Also note that it does 2111 - * not implicitly call netlink_clear_multicast_users() when the 2112 - * number of groups is reduced. 2111 + * not implicitly clear listeners from groups that are removed when 2112 + * the number of groups is reduced. 2113 2113 * 2114 2114 * @sk: The kernel netlink socket, as returned by netlink_kernel_create(). 2115 2115 * @groups: The new number of groups.