dmaengine: fsldma: Fix a resource leak in the remove function
Subsystems (3)
PATCH 1/2 dmaengine: fsldma: Fix a resource leak in the remove function
A 'irq_dispose_mapping()' call is missing in the remove function. Add it.
This is needed to undo the 'irq_of_parse_and_map() call from the probe function and already part of the error handling path of the probe function.
It was added in the probe function only in commit d3f620b2c4fe ("fsldma:
simplify IRQ probing and handling")
---
Patch provided as-is.
I don't have the configuration to compile test this patch
--- drivers/dma/fsldma.c | 1 + 1 file changed, 1 insertion(+)
drivers/dma/fsldma.c +1 -0
@@ -1314,6 +1314,7 @@ static int fsldma_of_remove(struct platform_device *op)if (fdev->chan[i])fsl_dma_chan_remove (fdev->chan[i]); } +irq_dispose_mapping (fdev->irq);iounmap (fdev->regs);kfree (fdev);
Signature · 1 line
2.27.0
Quoted 8 lines · Christophe JAILLET
A '
irq_dispose_mapping()' call is missing in the remove function. Add it.This is needed to undo the '
irq_of_parse_and_map()call from the probe function and already part of the error handling path of the probe function.It was added in the probe function only in commit
d3f620b2c4fe("fsldma:
simplify IRQ probing and handling")
Applied both, thanks
Signature · 1 line
~Vinod