summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2019-11-13 14:38:47 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-13 08:51:06 +0100
commit6eb6e800188e7363d959bd68e55c750c59707730 (patch)
tree77c7ddf1088db159f3e453b46f69acf30a3e16ca /drivers/block
parenta806e2a35dc10f77765ed5b0efaa460ab899779c (diff)
downloadlinux-stable-6eb6e800188e7363d959bd68e55c750c59707730.tar.gz
linux-stable-6eb6e800188e7363d959bd68e55c750c59707730.tar.bz2
linux-stable-6eb6e800188e7363d959bd68e55c750c59707730.zip
rsxx: add missed destroy_workqueue calls in remove
[ Upstream commit dcb77e4b274b8f13ac6482dfb09160cd2fae9a40 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/rsxx/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/rsxx/core.c b/drivers/block/rsxx/core.c
index f2c631ce793c..14056dc45064 100644
--- a/drivers/block/rsxx/core.c
+++ b/drivers/block/rsxx/core.c
@@ -1014,8 +1014,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);