Skip to content

Commit 4ee632c

Browse files
nxpfranklivinodkoul
authored andcommitted
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(). Cc: stable@vger.kernel.org Fixes: 72f5801 ("dmaengine: fsl-edma: integrate v3 support") Signed-off-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20231127214325.2477247-1-Frank.Li@nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent bffa721 commit 4ee632c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/dma/fsl-edma-common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,7 @@ void fsl_edma_free_chan_resources(struct dma_chan *chan)
828828
dma_pool_destroy(fsl_chan->tcd_pool);
829829
fsl_chan->tcd_pool = NULL;
830830
fsl_chan->is_sw = false;
831+
fsl_chan->srcid = 0;
831832
}
832833

833834
void fsl_edma_cleanup_vchan(struct dma_device *dmadev)

0 commit comments

Comments
 (0)