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>
This commit is contained in:
Родитель
8bcde1f2ab
Коммит
1d8b1fd55a
|
@ -1299,7 +1299,7 @@ static void l2cap_conn_unreliable(struct l2cap_conn *conn, int err)
|
||||||
|
|
||||||
list_for_each_entry(chan, &conn->chan_l, list) {
|
list_for_each_entry(chan, &conn->chan_l, list) {
|
||||||
if (test_bit(FLAG_FORCE_RELIABLE, &chan->flags))
|
if (test_bit(FLAG_FORCE_RELIABLE, &chan->flags))
|
||||||
__l2cap_chan_set_err(chan, err);
|
l2cap_chan_set_err(chan, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
mutex_unlock(&conn->chan_lock);
|
mutex_unlock(&conn->chan_lock);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче