projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfdeb07
)
Bluetooth: Fix bad locking balance
author
Gustavo F. Padovan
<padovan@profusion.mobi>
Fri, 17 Jun 2011 15:57:25 +0000
(12:57 -0300)
committer
Jaikumar Ganesh
<jaikumar@google.com>
Mon, 11 Jul 2011 18:59:27 +0000
(11:59 -0700)
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap_core.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/l2cap_core.c
b/net/bluetooth/l2cap_core.c
index 1f9364f47b4051f0aaa1e4234b0061738656556e..45976899ce572c75b82ba22bf65b4b9dcc3f03d4 100644
(file)
--- 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;
}