History

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().

Frank Li committed 2 years ago

Commit 4ee632c1 parent bffa7211 file · +1 −0Browse files

Unified · Split

drivers/dma/fsl-edma-common.c+1−0
@@ -828,6 +828,7 @@ void fsl_edma_free_chan_resources(struct dma_chan *chan) · 827 unmodified lines
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)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t