Skip to contentSkip to conversation

dmaengine: fsl-edma: fix DMA channel leak in eDMAv4

PATCH Applied Frank Li 2 participants 2 messages Nov 27, 2023 – Dec 11, 2023

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 dmaengine: fsl-edma: fix DMA channel leak in eDMAv4

Allocate channel count consistently increases due to a missing source ID (srcid) cleanup in the fsl_edma_free_chan_resources() function at imx93 eDMAv4.

Reset 'srcid' at fsl_edma_free_chan_resources().

Fixes 72f5801a4e2b ("dmaengine: fsl-edma: integrate v3 support")
---
 drivers/dma/fsl-edma-common.c | 1 +
 1 file changed, 1 insertion(+)
drivers/dma/fsl-edma-common.c +1 -0
index 49e6cfc285029..c8acff09308fd 100644
@@ -837,6 +837,7 @@ void fsl_edma_free_chan_resources(struct dma_chan *chan)
 	dma_pool_destroy(fsl_chan->tcd_pool);
 	fsl_chan->tcd_pool = NULL;
 	fsl_chan->is_sw = false;
+	fsl_chan->srcid = 0;
 }
 
 void fsl_edma_cleanup_vchan(struct dma_device *dmadev)
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 8 lines · Frank Li

Allocate channel count consistently increases due to a missing source ID (srcid) cleanup in the fsl_edma_free_chan_resources() function at imx93 eDMAv4.

Reset 'srcid' at fsl_edma_free_chan_resources().

[...]

Applied, thanks!

[1/1] dmaengine: fsl-edma: fix DMA channel leak in eDMAv4

      commit: 4ee632c82d2dbb9e2dcc816890ef182a151cbd99

Best regards,

Signature · 1 line
~Vinod