diff options
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r-- | net/netlink/af_netlink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index a2071dcfe9e8..c7d76579bf3c 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -452,7 +452,10 @@ static int netlink_create(struct net *net, struct socket *sock, int protocol) | |||
452 | if (err < 0) | 452 | if (err < 0) |
453 | goto out_module; | 453 | goto out_module; |
454 | 454 | ||
455 | local_bh_disable(); | ||
455 | sock_prot_inuse_add(net, &netlink_proto, 1); | 456 | sock_prot_inuse_add(net, &netlink_proto, 1); |
457 | local_bh_enable(); | ||
458 | |||
456 | nlk = nlk_sk(sock->sk); | 459 | nlk = nlk_sk(sock->sk); |
457 | nlk->module = module; | 460 | nlk->module = module; |
458 | out: | 461 | out: |