aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-11-16 07:05:34 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-17 07:08:49 -0500
commit649300b9278dc9fc9c7dfaaa3719ead70882e726 (patch)
tree033f070756ccb304afbc1ade495d5b1761c2d836 /net/netlink
parent54b9ddaa68414fad72ab2e1042be067c902441a6 (diff)
netlink: remove subscriptions check on notifier
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 <johannes@sipsolutions.net> Cc: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/af_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index f30d596dbc58..eff5b0ddc5ca 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -498,7 +498,7 @@ static int netlink_release(struct socket *sock)
498 498
499 skb_queue_purge(&sk->sk_write_queue); 499 skb_queue_purge(&sk->sk_write_queue);
500 500
501 if (nlk->pid && !nlk->subscriptions) { 501 if (nlk->pid) {
502 struct netlink_notify n = { 502 struct netlink_notify n = {
503 .net = sock_net(sk), 503 .net = sock_net(sk),
504 .protocol = sk->sk_protocol, 504 .protocol = sk->sk_protocol,