Skip to content

Commit

Permalink
Bluetooth: Fix another locking unbalance
Browse files Browse the repository at this point in the history
l2cap_get_sock_by_scid was changed to not lock the socket anymore, but I
forgot to change all the users of this function.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Gustavo F. Padovan committed Apr 14, 2011
1 parent 280f294 commit 62f3a2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,8 @@ static void l2cap_le_conn_ready(struct l2cap_conn *conn)
if (!parent)
return;

bh_lock_sock(parent);

/* Check for backlog size */
if (sk_acceptq_is_full(parent)) {
BT_DBG("backlog full %d", parent->sk_ack_backlog);
Expand Down

0 comments on commit 62f3a2c

Please sign in to comment.