diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c index c86f4e42e..0ad7bd17a 100644 --- a/net/bluetooth/hci_sync.c +++ b/net/bluetooth/hci_sync.c @@ -5235,7 +5235,8 @@ int hci_dev_close_sync(struct hci_dev *hdev) } /* flush cmd work */ - flush_work(&hdev->cmd_work); + cancel_work_sync(&hdev->cmd_work); + /* Drop queues */ skb_queue_purge(&hdev->rx_q);