Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d8b1fd5 authored by Gustavo Padovan's avatar Gustavo Padovan
Browse files

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: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
parent 8bcde1f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1299,7 +1299,7 @@ static void l2cap_conn_unreliable(struct l2cap_conn *conn, int err)

	list_for_each_entry(chan, &conn->chan_l, list) {
		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);