From: Vinod Koul Date: Mon, 4 Jul 2016 10:36:04 +0000 (+0530) Subject: dmaengine: nbpfaxi: kill the tasklets upon exit X-Git-Tag: v4.8-rc1~117^2^2~17 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b63abf18796f2b5cab22a3b48b4f854dbee0faaa;p=users%2Fjedix%2Flinux-maple.git dmaengine: nbpfaxi: kill the tasklets upon exit drivers should ensure that tasklets are killed, so that they can't be run after driver remove is executed Signed-off-by: Vinod Koul Cc: Guennadi Liakhovetski --- diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c index f489f4e3429fc..08c45c1855496 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);