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

Commit d117773c authored by Gustavo Padovan's avatar Gustavo Padovan
Browse files

Bluetooth: Use locked l2cap_state_change()



No one was protecting the state set in l2cap_send_disconn_req()

Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
parent 1d8b1fd5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1062,7 +1062,7 @@ static void l2cap_send_disconn_req(struct l2cap_conn *conn,
	}
	}


	if (chan->chan_type == L2CAP_CHAN_CONN_FIX_A2MP) {
	if (chan->chan_type == L2CAP_CHAN_CONN_FIX_A2MP) {
		__l2cap_state_change(chan, BT_DISCONN);
		l2cap_state_change(chan, BT_DISCONN);
		return;
		return;
	}
	}