projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b6271a
)
dmaengine: edma: fix another memory leak
author
Vinod Koul
<vinod.koul@intel.com>
Thu, 24 Oct 2013 16:47:50 +0000
(22:17 +0530)
committer
Vinod Koul
<vinod.koul@intel.com>
Thu, 24 Oct 2013 16:47:50 +0000
(22:17 +0530)
commit
4b6271a6
fix a menory leak but one more existed in driver so fix that
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/edma.c
b/drivers/dma/edma.c
index 134fa96de1b365a3feb8e557cfefc7868c80e272..10b577fcf48d82dfd70f6c120d379eaa2f24e2aa 100644
(file)
--- a/
drivers/dma/edma.c
+++ b/
drivers/dma/edma.c
@@
-347,6
+347,7
@@
static struct dma_async_tx_descriptor *edma_prep_slave_sg(
ccnt = sg_dma_len(sg) / (acnt * bcnt);
if (ccnt > (SZ_64K - 1)) {
dev_err(dev, "Exceeded max SG segment size\n");
+ kfree(edesc);
return NULL;
}
cidx = acnt * bcnt;