Bluetooth: Fix bad locking balance
authorGustavo F. Padovan <padovan@profusion.mobi>
Fri, 17 Jun 2011 15:57:25 +0000 (12:57 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Fri, 1 Jul 2011 19:10:06 +0000 (16:10 -0300)
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap_core.c

index becf2ad722083731ee9c5639cf15479dc52b682e..27b2cd124f007e712c2d7fe781c001abd792a76c 100644 (file)
@@ -741,9 +741,9 @@ static void l2cap_conn_start(struct l2cap_conn *conn)
                                        &chan->conf_state)) {
                                /* l2cap_chan_close() calls list_del(chan)
                                 * so release the lock */
-                               read_unlock_bh(&conn->chan_lock);
+                               read_unlock(&conn->chan_lock);
                                l2cap_chan_close(chan, ECONNRESET);
-                               read_lock_bh(&conn->chan_lock);
+                               read_lock(&conn->chan_lock);
                                bh_unlock_sock(sk);
                                continue;
                        }