提交 649300b9 编写于 作者: J Johannes Berg 提交者: David S. Miller

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: NJohannes Berg <johannes@sipsolutions.net>
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 54b9ddaa
...@@ -498,7 +498,7 @@ static int netlink_release(struct socket *sock) ...@@ -498,7 +498,7 @@ static int netlink_release(struct socket *sock)
skb_queue_purge(&sk->sk_write_queue); skb_queue_purge(&sk->sk_write_queue);
if (nlk->pid && !nlk->subscriptions) { if (nlk->pid) {
struct netlink_notify n = { struct netlink_notify n = {
.net = sock_net(sk), .net = sock_net(sk),
.protocol = sk->sk_protocol, .protocol = sk->sk_protocol,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册