Skip to content

Commit

Permalink
Bluetooth: Fix bad locking balance
Browse files Browse the repository at this point in the history
Signed-off-by: Gustavo F. Padovan <[email protected]>
  • Loading branch information
Gustavo F. Padovan committed Jul 1, 2011
1 parent 2d25f8b commit 2461daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2461daa

Please sign in to comment.