mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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>
This commit is contained in:
parent
84c610ba54
commit
b63abf1879
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue