Commit 526e4dcf authored by Maksim Krasnyanskiy's avatar Maksim Krasnyanskiy

[Bluetooth] USB drivers cannot call usb_unlink_urb() under spin lock.

parent 7c4efa69
......@@ -376,12 +376,12 @@ static int hci_usb_close(struct hci_dev *hdev)
BT_DBG("%s", hdev->name);
/* Synchronize with completion handlers */
write_lock_irqsave(&husb->completion_lock, flags);
write_unlock_irqrestore(&husb->completion_lock, flags);
hci_usb_unlink_urbs(husb);
hci_usb_flush(hdev);
write_unlock_irqrestore(&husb->completion_lock, flags);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment