diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c index e64727e1a72f9c2ffb830de8492b1e64d2d7963b..79bebf4b0796915b514f7a8283b941c6db0d17e8 100644 --- a/net/nfc/nci/core.c +++ b/net/nfc/nci/core.c @@ -579,11 +579,11 @@ static int nci_close_device(struct nci_dev *ndev) clear_bit(NCI_INIT, &ndev->flags); - del_timer_sync(&ndev->cmd_timer); - /* Flush cmd wq */ flush_workqueue(ndev->cmd_wq); + del_timer_sync(&ndev->cmd_timer); + /* Clear flags */ ndev->flags = 0;