mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 08:02:07 +00:00
Bluetooth: Fix bad locking balance
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
parent
2d25f8b462
commit
2461daacb3
@ -741,9 +741,9 @@ static void l2cap_conn_start(struct l2cap_conn *conn)
|
|||||||
&chan->conf_state)) {
|
&chan->conf_state)) {
|
||||||
/* l2cap_chan_close() calls list_del(chan)
|
/* l2cap_chan_close() calls list_del(chan)
|
||||||
* so release the lock */
|
* so release the lock */
|
||||||
read_unlock_bh(&conn->chan_lock);
|
read_unlock(&conn->chan_lock);
|
||||||
l2cap_chan_close(chan, ECONNRESET);
|
l2cap_chan_close(chan, ECONNRESET);
|
||||||
read_lock_bh(&conn->chan_lock);
|
read_lock(&conn->chan_lock);
|
||||||
bh_unlock_sock(sk);
|
bh_unlock_sock(sk);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user