Bluetooth: Use locked l2cap_state_change()

No one was protecting the state set in l2cap_send_disconn_req()

Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
This commit is contained in:
Gustavo Padovan 2012-10-06 11:47:38 +01:00
Родитель 1d8b1fd55a
Коммит d117773ce5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
} }