aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/af_netlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index c7d76579bf3c..9eb895c7a2a9 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -515,7 +515,9 @@ static int netlink_release(struct socket *sock)
515 kfree(nlk->groups); 515 kfree(nlk->groups);
516 nlk->groups = NULL; 516 nlk->groups = NULL;
517 517
518 local_bh_disable();
518 sock_prot_inuse_add(sock_net(sk), &netlink_proto, -1); 519 sock_prot_inuse_add(sock_net(sk), &netlink_proto, -1);
520 local_bh_enable();
519 sock_put(sk); 521 sock_put(sk);
520 return 0; 522 return 0;
521} 523}