Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 246935
b: refs/heads/master
c: 280f294
h: refs/heads/master
i:
  246933: 41e8f4f
  246931: 192aa36
  246927: 583dbe3
v: v3
  • Loading branch information
Gustavo F. Padovan committed Apr 13, 2011
1 parent af65942 commit 3474d41
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 9f72c1d977e47a7d182d49ea131067cba0a96ab8
refs/heads/master: 280f294f7bd0c14d9f802a551c95dc930e31d723
8 changes: 3 additions & 5 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ static void l2cap_conn_start(struct l2cap_conn *conn)
*/
static struct sock *l2cap_get_sock_by_scid(int state, __le16 cid, bdaddr_t *src)
{
struct sock *s, *sk = NULL, *sk1 = NULL;
struct sock *sk = NULL, *sk1 = NULL;
struct hlist_node *node;

read_lock(&l2cap_sk_list.lock);
Expand All @@ -613,12 +613,10 @@ static struct sock *l2cap_get_sock_by_scid(int state, __le16 cid, bdaddr_t *src)
sk1 = sk;
}
}
s = node ? sk : sk1;
if (s)
bh_lock_sock(s);

read_unlock(&l2cap_sk_list.lock);

return s;
return node ? sk : sk1;
}

static void l2cap_le_conn_ready(struct l2cap_conn *conn)
Expand Down

0 comments on commit 3474d41

Please sign in to comment.