Unverified Commit 1bc115db authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10524 Bluetooth: hci_core: cancel all works upon hci_unregister_dev()

parents 2b02b3a2 72083e5a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2704,7 +2704,11 @@ void hci_unregister_dev(struct hci_dev *hdev)
	list_del(&hdev->list);
	write_unlock(&hci_dev_list_lock);

	cancel_work_sync(&hdev->rx_work);
	cancel_work_sync(&hdev->cmd_work);
	cancel_work_sync(&hdev->tx_work);
	cancel_work_sync(&hdev->power_on);
	cancel_work_sync(&hdev->error_reset);

	hci_cmd_sync_clear(hdev);