Skip to content

Commit

Permalink
rsxx: add missed destroy_workqueue calls in remove
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
WillLester authored and axboe committed Nov 14, 2019
1 parent 8b37bc2 commit dcb77e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/block/rsxx/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dcb77e4

Please sign in to comment.