Skip to content

Commit

Permalink
bluetooth l2cap: fix locking in l2cap_global_chan_by_psm
Browse files Browse the repository at this point in the history
read_lock() ... read_unlock_bh() is clearly bogus.
This was broken by

commit 23691d7
Author: Gustavo F. Padovan <padovan@profusion.mobi>
Date:   Wed Apr 27 18:26:32 2011 -0300

    Bluetooth: Remove l2cap_sk_list

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jun 1, 2011
1 parent 21fdc87 commit a7567b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ static struct l2cap_chan *l2cap_global_chan_by_psm(int state, __le16 psm, bdaddr
if (c->psm == psm) {
/* Exact match. */
if (!bacmp(&bt_sk(sk)->src, src)) {
read_unlock_bh(&chan_list_lock);
read_unlock(&chan_list_lock);
return c;
}

Expand Down

0 comments on commit a7567b2

Please sign in to comment.