]> Git Repo - J-linux.git/commitdiff
dmaengine: fsl-edma: fix DMA channel leak in eDMAv4
authorFrank Li <[email protected]>
Mon, 27 Nov 2023 21:43:25 +0000 (16:43 -0500)
committerVinod Koul <[email protected]>
Mon, 11 Dec 2023 14:44:29 +0000 (20:14 +0530)
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().

Cc: [email protected]
Fixes: 72f5801a4e2b ("dmaengine: fsl-edma: integrate v3 support")
Signed-off-by: Frank Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
drivers/dma/fsl-edma-common.c

index 6a3abe5b17908dc3fbbfa4812fdc8e6c6ebbb504..b53f46245c377f05520c8275c95bf10c59be34d7 100644 (file)
@@ -828,6 +828,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)
This page took 0.048588 seconds and 4 git commands to generate.