Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340950
b: refs/heads/master
c: 54292d6
h: refs/heads/master
v: v3
  • Loading branch information
Samuel Ortiz committed Oct 26, 2012
1 parent 0169ade commit 82d5048
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: e6904081dd2ff22b861d976810a55322b5aece82
refs/heads/master: 54292d64e1b6cbe735852aaf59e56ef78dc15f82
7 changes: 6 additions & 1 deletion trunk/net/nfc/llcp/llcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,12 @@ struct nfc_llcp_sock *nfc_llcp_sock_from_sn(struct nfc_llcp_local *local,

pr_debug("llcp sock %p\n", tmp_sock);

if (tmp_sock->sk.sk_state != LLCP_LISTEN)
if (tmp_sock->sk.sk_type == SOCK_STREAM &&
tmp_sock->sk.sk_state != LLCP_LISTEN)
continue;

if (tmp_sock->sk.sk_type == SOCK_DGRAM &&
tmp_sock->sk.sk_state != LLCP_BOUND)
continue;

if (tmp_sock->service_name == NULL ||
Expand Down

0 comments on commit 82d5048

Please sign in to comment.