dmaengine: qcom_hidma_lli: kill the tasklets upon exit
authorVinod Koul <vinod.koul@intel.com>
Wed, 6 Jul 2016 16:37:23 +0000 (22:07 +0530)
committerVinod Koul <vinod.koul@intel.com>
Sat, 23 Jul 2016 10:37:27 +0000 (16:07 +0530)
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: Sinan Kaya <okaya@codeaurora.org>
drivers/dma/qcom/hidma_ll.c

index f3929001539b0a464c30ff650a7934b22c588f52..ad20dfb64c71cb32d3b392c0fcb0dcd0002a5787 100644 (file)
@@ -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;