Message ID | 1461694653-29506-37-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index f7cb8c6..08bd219 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -1293,7 +1293,7 @@ static int netlink_release(struct socket *sock) skb_queue_purge(&sk->sk_write_queue); - if (nlk->portid) { + if (nlk->portid && nlk->bound) { struct netlink_notify n = { .net = sock_net(sk), .protocol = sk->sk_protocol,