From: Gustavo F. Padovan Date: Thu, 14 Apr 2011 21:34:34 +0000 (-0300) Subject: Bluetooth: Fix another locking unbalance X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=62f3a2cfb1891c070631e496eeea852e949ea8bb;p=linux-beck.git 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 --- 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) 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);