瀏覽代碼

dmaengine: nbpfaxi: 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 <vinod.koul@intel.com>
Cc: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Vinod Koul 9 年之前
父節點
當前提交
b63abf1879
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/dma/nbpfaxi.c

+ 2 - 0
drivers/dma/nbpfaxi.c

@@ -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);