Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243570
b: refs/heads/master
c: c100c8f
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Apr 1, 2011
1 parent 1713021 commit 8537095
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c37947459172a02691ccd48cb967e8b605d38c56
refs/heads/master: c100c8f4c3c6f2a407bdbaaad2c4f1062e6a473a
11 changes: 6 additions & 5 deletions trunk/net/appletalk/ddp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,16 +1051,17 @@ static int atalk_release(struct socket *sock)
{
struct sock *sk = sock->sk;

sock_hold(sk);
lock_sock(sk);
if (sk) {
sock_hold(sk);
lock_sock(sk);

sock_orphan(sk);
sock->sk = NULL;
atalk_destroy_socket(sk);
}
release_sock(sk);
sock_put(sk);

release_sock(sk);
sock_put(sk);
}
return 0;
}

Expand Down

0 comments on commit 8537095

Please sign in to comment.