Bluetooth: Replace spin_lock by mutex in hci_dev
[deliverable/linux.git] / net / bluetooth / sco.c
index a324b009e34b7bc1b66a91ce9e3a5188169ec04c..725e10d487f2fc7e767d0f024e365265b0869afd 100644 (file)
@@ -189,7 +189,7 @@ static int sco_connect(struct sock *sk)
        if (!hdev)
                return -EHOSTUNREACH;
 
-       hci_dev_lock_bh(hdev);
+       hci_dev_lock(hdev);
 
        if (lmp_esco_capable(hdev) && !disable_esco)
                type = ESCO_LINK;
@@ -225,7 +225,7 @@ static int sco_connect(struct sock *sk)
        }
 
 done:
-       hci_dev_unlock_bh(hdev);
+       hci_dev_unlock(hdev);
        hci_dev_put(hdev);
        return err;
 }
This page took 0.029246 seconds and 5 git commands to generate.