Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328321
b: refs/heads/master
c: 50b78b2
h: refs/heads/master
i:
  328319: 5b6bc56
v: v3
  • Loading branch information
Szymon Janc authored and Samuel Ortiz committed Sep 27, 2012
1 parent 1a255a8 commit d0119ae
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 3c0cc8aa23f4b53446bbf385d4647eec6992a2cb
refs/heads/master: 50b78b2a6500d0e97c204c1b6c51df8c17358bbe
10 changes: 5 additions & 5 deletions trunk/net/nfc/llcp/llcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static void nfc_llcp_socket_release(struct nfc_llcp_local *local, bool listen)
sk_for_each_safe(sk, node, tmp, &local->sockets.head) {
llcp_sock = nfc_llcp_sock(sk);

lock_sock(sk);
bh_lock_sock(sk);

if (sk->sk_state == LLCP_CONNECTED)
nfc_put_device(llcp_sock->dev);
Expand All @@ -68,26 +68,26 @@ static void nfc_llcp_socket_release(struct nfc_llcp_local *local, bool listen)
list_for_each_entry_safe(lsk, n, &llcp_sock->accept_queue,
accept_queue) {
accept_sk = &lsk->sk;
lock_sock(accept_sk);
bh_lock_sock(accept_sk);

nfc_llcp_accept_unlink(accept_sk);

accept_sk->sk_state = LLCP_CLOSED;

release_sock(accept_sk);
bh_unlock_sock(accept_sk);

sock_orphan(accept_sk);
}

if (listen == true) {
release_sock(sk);
bh_unlock_sock(sk);
continue;
}
}

sk->sk_state = LLCP_CLOSED;

release_sock(sk);
bh_unlock_sock(sk);

sock_orphan(sk);

Expand Down

0 comments on commit d0119ae

Please sign in to comment.