|
@@ -1854,6 +1854,8 @@ void hci_unregister_dev(struct hci_dev *hdev)
|
|
|
for (i = 0; i < NUM_REASSEMBLY; i++)
|
|
for (i = 0; i < NUM_REASSEMBLY; i++)
|
|
|
kfree_skb(hdev->reassembly[i]);
|
|
kfree_skb(hdev->reassembly[i]);
|
|
|
|
|
|
|
|
|
|
+ cancel_work_sync(&hdev->power_on);
|
|
|
|
|
+
|
|
|
if (!test_bit(HCI_INIT, &hdev->flags) &&
|
|
if (!test_bit(HCI_INIT, &hdev->flags) &&
|
|
|
!test_bit(HCI_SETUP, &hdev->dev_flags)) {
|
|
!test_bit(HCI_SETUP, &hdev->dev_flags)) {
|
|
|
hci_dev_lock(hdev);
|
|
hci_dev_lock(hdev);
|