projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dmaengine: fsl-edma: fix DMA channel leak in eDMAv4
[platform/kernel/linux-starfive.git]
/
drivers
/
dma
/
fsl-edma-common.c
diff --git
a/drivers/dma/fsl-edma-common.c
b/drivers/dma/fsl-edma-common.c
index
6a3abe5
..
b53f462
100644
(file)
--- a/
drivers/dma/fsl-edma-common.c
+++ b/
drivers/dma/fsl-edma-common.c
@@
-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;
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)
}
void fsl_edma_cleanup_vchan(struct dma_device *dmadev)