aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-10-06 06:34:52 -0400
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-10-12 06:21:00 -0400
commit1d8b1fd55aa1dfa9edd74ebb467db9358fa56f8a (patch)
tree9ad594ce022c6db60e97db3d1587335ed64eef35 /net/bluetooth
parent8bcde1f2ab732a7d7db1de854dcc0747ffecb7c2 (diff)
Bluetooth: use l2cap_chan_set_err()
l2cap_conn_unreliable() doesn't take the sk lock, so we need to take it using l2cap_chan_set_err(). Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 207b4a868485..bca3dd91bcbc 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -1299,7 +1299,7 @@ static void l2cap_conn_unreliable(struct l2cap_conn *conn, int err)
1299 1299
1300 list_for_each_entry(chan, &conn->chan_l, list) { 1300 list_for_each_entry(chan, &conn->chan_l, list) {
1301 if (test_bit(FLAG_FORCE_RELIABLE, &chan->flags)) 1301 if (test_bit(FLAG_FORCE_RELIABLE, &chan->flags))
1302 __l2cap_chan_set_err(chan, err); 1302 l2cap_chan_set_err(chan, err);
1303 } 1303 }
1304 1304
1305 mutex_unlock(&conn->chan_lock); 1305 mutex_unlock(&conn->chan_lock);