diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-04-14 17:34:34 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-04-14 17:34:34 -0400 |
commit | 62f3a2cfb1891c070631e496eeea852e949ea8bb (patch) | |
tree | 2d1a6d60f612f14fd7fdb9bd256f621cac0dc544 /net/bluetooth | |
parent | 280f294f7bd0c14d9f802a551c95dc930e31d723 (diff) |
Bluetooth: Fix another locking unbalance
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>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index d5db5a38df6a..bc84ed1b3320 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -632,6 +632,8 @@ static void l2cap_le_conn_ready(struct l2cap_conn *conn) | |||
632 | if (!parent) | 632 | if (!parent) |
633 | return; | 633 | return; |
634 | 634 | ||
635 | bh_lock_sock(parent); | ||
636 | |||
635 | /* Check for backlog size */ | 637 | /* Check for backlog size */ |
636 | if (sk_acceptq_is_full(parent)) { | 638 | if (sk_acceptq_is_full(parent)) { |
637 | BT_DBG("backlog full %d", parent->sk_ack_backlog); | 639 | BT_DBG("backlog full %d", parent->sk_ack_backlog); |