aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,