diff mbox

[20/32] dmaengine: nbpfaxi: kill the tasklets upon exit

Message ID 1467730478-9696-21-git-send-email-vinod.koul@intel.com (mailing list archive)
State Accepted
Headers show

Commit Message

Vinod Koul July 5, 2016, 2:54 p.m. UTC
drivers should ensure that tasklets are killed, so that they can't be
run after driver remove is executed

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Cc: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
---
 drivers/dma/nbpfaxi.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c
index f489f4e3429f..08c45c185549 100644
--- a/drivers/dma/nbpfaxi.c
+++ b/drivers/dma/nbpfaxi.c
@@ -1456,6 +1456,8 @@  static int nbpf_remove(struct platform_device *pdev)
 		struct nbpf_channel *chan = nbpf->chan + i;
 
 		devm_free_irq(&pdev->dev, chan->irq, chan);
+
+		tasklet_kill(&chan->tasklet);
 	}
 
 	of_dma_controller_free(pdev->dev.of_node);