From: Vinod Koul Date: Wed, 6 Jul 2016 16:37:23 +0000 (+0530) Subject: dmaengine: qcom_hidma_lli: kill the tasklets upon exit X-Git-Tag: v4.14-rc1~2793^2^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4cad91b2a9977c8d92f342c4a9b73cd9dbce8f21;p=platform%2Fkernel%2Flinux-rpi.git dmaengine: qcom_hidma_lli: 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: Sinan Kaya --- diff --git a/drivers/dma/qcom/hidma_ll.c b/drivers/dma/qcom/hidma_ll.c index f392900..ad20dfb 100644 --- a/drivers/dma/qcom/hidma_ll.c +++ b/drivers/dma/qcom/hidma_ll.c @@ -831,6 +831,7 @@ int hidma_ll_uninit(struct hidma_lldev *lldev) required_bytes = sizeof(struct hidma_tre) * lldev->nr_tres; tasklet_kill(&lldev->task); + tasklet_kill(&lldev->rst_task); memset(lldev->trepool, 0, required_bytes); lldev->trepool = NULL; lldev->pending_tre_count = 0;