Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121882
b: refs/heads/master
c: a8076d8
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 17, 2008
1 parent 541f9fe commit 374fb35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 248969ae31e1b3276fc4399d67ce29a5d81e6fd9
refs/heads/master: a8076d8db98de6da61394b2e942320e4612643ac
4 changes: 4 additions & 0 deletions trunk/net/unix/af_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ static void unix_sock_destructor(struct sock *sk)
unix_release_addr(u->addr);

atomic_dec(&unix_nr_socks);
sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1);
#ifdef UNIX_REFCNT_DEBUG
printk(KERN_DEBUG "UNIX %p is destroyed, %d are still alive.\n", sk,
atomic_read(&unix_nr_socks));
Expand Down Expand Up @@ -612,6 +613,9 @@ static struct sock *unix_create1(struct net *net, struct socket *sock)
out:
if (sk == NULL)
atomic_dec(&unix_nr_socks);
else
sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1);

return sk;
}

Expand Down

0 comments on commit 374fb35

Please sign in to comment.