|
@@ -361,7 +361,9 @@ static void unix_sock_destructor(struct sock *sk)
|
|
|
unix_release_addr(u->addr);
|
|
|
|
|
|
atomic_dec(&unix_nr_socks);
|
|
|
+ local_bh_disable();
|
|
|
sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1);
|
|
|
+ local_bh_enable();
|
|
|
#ifdef UNIX_REFCNT_DEBUG
|
|
|
printk(KERN_DEBUG "UNIX %p is destroyed, %d are still alive.\n", sk,
|
|
|
atomic_read(&unix_nr_socks));
|