From: Eric Dumazet Date: Mon, 24 Nov 2008 22:05:22 +0000 (-0800) Subject: net: Make sure BHs are disabled in sock_prot_inuse_add() X-Git-Tag: v2.6.29-rc1~581^2~524 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3755810cebf7f9902b05c7ba9baeac0fc44881be;p=profile%2Fivi%2Fkernel-x86-ivi.git net: Make sure BHs are disabled in sock_prot_inuse_add() There is still a call to sock_prot_inuse_add() in af_netlink while in a preemptable section. Add explicit BH disable around this call. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index c7d7657..9eb895c 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -515,7 +515,9 @@ static int netlink_release(struct socket *sock) kfree(nlk->groups); nlk->groups = NULL; + local_bh_disable(); sock_prot_inuse_add(sock_net(sk), &netlink_proto, -1); + local_bh_enable(); sock_put(sk); return 0; }