dmaengine: fsl-edma: fix DMA channel leak in eDMAv4
[platform/kernel/linux-starfive.git] / drivers / dma / fsl-edma-common.c
index 6a3abe5..b53f462 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)