dmaengine: mpc512x: kill the tasklets upon exit
authorVinod Koul <vinod.koul@intel.com>
Mon, 4 Jul 2016 10:43:09 +0000 (16:13 +0530)
committerVinod Koul <vinod.koul@intel.com>
Sat, 16 Jul 2016 14:49:05 +0000 (20:19 +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: Mario Six <mario.six@gdsys.cc>
drivers/dma/mpc512x_dma.c

index ccadafa..fa86592 100644 (file)
@@ -1110,6 +1110,7 @@ static int mpc_dma_remove(struct platform_device *op)
        }
        free_irq(mdma->irq, mdma);
        irq_dispose_mapping(mdma->irq);
+       tasklet_kill(&mdma->tasklet);
 
        return 0;
 }