Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340951
b: refs/heads/master
c: c8512be
h: refs/heads/master
i:
  340949: 0169ade
  340947: 9ab5da2
  340943: 3f54094
v: v3
  • Loading branch information
Samuel Ortiz committed Oct 26, 2012
1 parent 82d5048 commit f9bb8eb
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 54292d64e1b6cbe735852aaf59e56ef78dc15f82
refs/heads/master: c8512be63bbf9216934ecd10e1f9e4f887076fc2
10 changes: 10 additions & 0 deletions trunk/net/nfc/llcp/llcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ static void nfc_llcp_socket_release(struct nfc_llcp_local *local, bool listen)
}
}

/*
* If we have a connection less socket bound, we keep it alive
* if the device is still present.
*/
if (sk->sk_state == LLCP_BOUND && sk->sk_type == SOCK_DGRAM &&
listen == true) {
bh_unlock_sock(sk);
continue;
}

sk->sk_state = LLCP_CLOSED;

bh_unlock_sock(sk);
Expand Down

0 comments on commit f9bb8eb

Please sign in to comment.