From: Chuhong Yuan Date: Wed, 13 Nov 2019 06:38:47 +0000 (+0800) Subject: rsxx: add missed destroy_workqueue calls in remove X-Git-Tag: for-linus-20191115^0 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=dcb77e4b274b8f13ac6482dfb09160cd2fae9a40;p=linux-2.6-block.git rsxx: add missed destroy_workqueue calls in remove The driver misses calling destroy_workqueue in remove like what is done when probe fails. Add the missed calls to fix it. Signed-off-by: Chuhong Yuan Signed-off-by: Jens Axboe --- diff --git a/drivers/block/rsxx/core.c b/drivers/block/rsxx/core.c index 76b73ddf8fd7..10f6368117d8 100644 --- a/drivers/block/rsxx/core.c +++ b/drivers/block/rsxx/core.c @@ -1000,8 +1000,10 @@ static void rsxx_pci_remove(struct pci_dev *dev) cancel_work_sync(&card->event_work); + destroy_workqueue(card->event_wq); rsxx_destroy_dev(card); rsxx_dma_destroy(card); + destroy_workqueue(card->creg_ctrl.creg_wq); spin_lock_irqsave(&card->irq_lock, flags); rsxx_disable_ier_and_isr(card, CR_INTR_ALL);