dmaengine: nbpfaxi: kill the tasklets upon exit
authorVinod Koul <vinod.koul@intel.com>
Mon, 4 Jul 2016 10:36:04 +0000 (16:06 +0530)
committerVinod Koul <vinod.koul@intel.com>
Sat, 16 Jul 2016 14:49:04 +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: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
drivers/dma/nbpfaxi.c

index f489f4e3429fc533ea02a75f941eef16ea53c622..08c45c18554966fb0cc1aa657ad18cd5d1be5e30 100644 (file)
@@ -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);