浏览代码

dmaengine: mpc512x: 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: Mario Six <mario.six@gdsys.cc>
Vinod Koul 9 年之前
父节点
当前提交
085fedf7ee
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/dma/mpc512x_dma.c

+ 1 - 0
drivers/dma/mpc512x_dma.c

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