Skip to contentSkip to conversation

edma: free the same memory twice

PATCH In review [email protected] 2 participants 2 messages Nov 22, 2013 – Nov 28, 2013 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 edma: free the same memory twice

From: Andrew Liu <[email protected]>

---
 drivers/dma/edma.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/dma/edma.c +0 -1
index bef8a36..04bc1be 100644
@@ -305,7 +305,6 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg(
 				edma_alloc_slot(EDMA_CTLR(echan->ch_num),
 						EDMA_SLOT_ANY);
 			if (echan->slot[i] < 0) {
-				kfree(edesc);
 				dev_err(dev, "Failed to allocate slot\n");
 				kfree(edesc);
 				return NULL;
Signature · 1 line
1.7.9
#1 lore raw
Quoted 3 lines · On Sat, Nov 23, 2013 at 12:54:03AM +0800, [email protected] wrote:

From: Andrew Liu <[email protected]>

This is already fixed in Linus tree via commit commit b6d5050

--
~Vinod

Quoted 19 lines
---
 drivers/dma/edma.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/dma/edma.c +0 -1
index bef8a36..04bc1be 100644
@@ -305,7 +305,6 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg(
 				edma_alloc_slot(EDMA_CTLR(echan->ch_num),
 						EDMA_SLOT_ANY);
 			if (echan->slot[i] < 0) {
-				kfree(edesc);
 				dev_err(dev, "Failed to allocate slot\n");
 				kfree(edesc);
 				return NULL;
Signature · 1 line
1.7.9