Bluetooth: Use locked l2cap_state_change()
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Sat, 6 Oct 2012 10:47:38 +0000 (11:47 +0100)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 12 Oct 2012 10:21:11 +0000 (18:21 +0800)
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>
net/bluetooth/l2cap_core.c

index bca3dd91bcbc305f717e9c0e58e40e58f3b6ad6e..7c453d6f7354b5ee4c177a150862f56ca121bd1f 100644 (file)
@@ -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;
        }