Commit b63abf18 authored by Vinod Koul's avatar Vinod Koul
Browse files

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: default avatarVinod Koul <vinod.koul@intel.com>
Cc: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
parent 84c610ba
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);