From: Gustavo Padovan Date: Sat, 6 Oct 2012 10:47:38 +0000 (+0100) Subject: Bluetooth: Use locked l2cap_state_change() X-Git-Tag: firefly_0821_release~3680^2~1480^2~17^2~353^2~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d117773ce5c73eaa51f3283f89802f4491b27b2e;p=firefly-linux-kernel-4.4.55.git Bluetooth: Use locked l2cap_state_change() No one was protecting the state set in l2cap_send_disconn_req() Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index bca3dd91bcbc..7c453d6f7354 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -1062,7 +1062,7 @@ static void l2cap_send_disconn_req(struct l2cap_conn *conn, } if (chan->chan_type == L2CAP_CHAN_CONN_FIX_A2MP) { - __l2cap_state_change(chan, BT_DISCONN); + l2cap_state_change(chan, BT_DISCONN); return; }