aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix
diff options
context:
space:
mode:
Diffstat (limited to 'net/unix')
-rw-r--r--net/unix/af_unix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index a45a9f7369e..3a35a6e8bf9 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -615,9 +615,11 @@ static struct sock *unix_create1(struct net *net, struct socket *sock)
615out: 615out:
616 if (sk == NULL) 616 if (sk == NULL)
617 atomic_dec(&unix_nr_socks); 617 atomic_dec(&unix_nr_socks);
618 else 618 else {
619 local_bh_disable();
619 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); 620 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1);
620 621 local_bh_enable();
622 }
621 return sk; 623 return sk;
622} 624}
623 625