netlink: remove subscriptions check on notifier
Subsystems (2)
The netlink URELEASE notifier doesn't notify for sockets that have been used to receive multicast but it should be called for such sockets as well since they might _also_ be used for sending and not solely for receiving multicast. We will need that for nl80211 (generic netlink sockets) in the future.
--- net/netlink/af_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netlink/af_netlink.c +1 -1
@@ -497,7 +497,7 @@ static int netlink_release(struct socketskb_queue_purge (&sk->sk_write_queue); -if (nlk->pid && !nlk->subscriptions) { +if (nlk->pid) {struct netlink_notify n = { .net =sock_net (sk), .protocol = sk->sk_protocol,
From: Johannes Berg <[email protected]>
Date: Mon, 16 Nov 2009 23:05:34 +0100
Quoted 9 lines
The netlink URELEASE notifier doesn't notify for sockets that have been used to receive multicast but it should be called for such sockets as well since they might _also_ be used for sending and not solely for receiving multicast. We will need that for nl80211 (generic netlink sockets) in the future.
Signed-off-by Johannes Berg <[email protected]>
Applied, let's see what this breaks :-)
Patrick McHardy
Acked-byQuoted 10 lines · Johannes Berg
The netlink URELEASE notifier doesn't notify for sockets that have been used to receive multicast but it should be called for such sockets as well since they might _also_ be used for sending and not solely for receiving multicast. We will need that for nl80211 (generic netlink sockets) in the future.
Signed-off-by Johannes Berg <[email protected]>Cc Patrick McHardy <[email protected]>
I've audited all users of this (all within netfilter) and this change makes sense for them as well.