From: Gustavo F. Padovan Date: Fri, 17 Jun 2011 15:57:25 +0000 (-0300) Subject: Bluetooth: Fix bad locking balance X-Git-Tag: firefly_0821_release~7613^2~470 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0e43af42876572976c15c1b732c8fdc593bbf93b;p=firefly-linux-kernel-4.4.55.git Bluetooth: Fix bad locking balance Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 1f9364f47b40..45976899ce57 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -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; }