Skip to content

Commit dcb77e4

Browse files
WillLesteraxboe
authored andcommitted
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 <hslester96@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 8b37bc2 commit dcb77e4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/block/rsxx/core.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,8 +1000,10 @@ static void rsxx_pci_remove(struct pci_dev *dev)
10001000

10011001
cancel_work_sync(&card->event_work);
10021002

1003+
destroy_workqueue(card->event_wq);
10031004
rsxx_destroy_dev(card);
10041005
rsxx_dma_destroy(card);
1006+
destroy_workqueue(card->creg_ctrl.creg_wq);
10051007

10061008
spin_lock_irqsave(&card->irq_lock, flags);
10071009
rsxx_disable_ier_and_isr(card, CR_INTR_ALL);

0 commit comments

Comments
 (0)