From: Vinod Koul Date: Tue, 5 Jul 2016 09:27:40 +0000 (+0530) Subject: dmaengine: qcom_hidma: kill the tasklets upon exit X-Git-Tag: v4.8-rc1~117^2^2~9 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=bd16934a5630f1e7294f33f1f72d89d4f6e6aeae;p=users%2Fjedix%2Flinux-maple.git dmaengine: qcom_hidma: 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 Acked-by: Sinan Kaya --- diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c index 41b5c6dee7132..b2374cd91e457 100644 --- a/drivers/dma/qcom/hidma.c +++ b/drivers/dma/qcom/hidma.c @@ -708,6 +708,7 @@ static int hidma_remove(struct platform_device *pdev) pm_runtime_get_sync(dmadev->ddev.dev); dma_async_device_unregister(&dmadev->ddev); devm_free_irq(dmadev->ddev.dev, dmadev->irq, dmadev->lldev); + tasklet_kill(&dmadev->task); hidma_debug_uninit(dmadev); hidma_ll_uninit(dmadev->lldev); hidma_free(dmadev);