From b6d5050cccf6f5b664a9601f4a274175ed6ab0b4 Mon Sep 17 00:00:00 2001 From: Vinod Koul Date: Wed, 13 Nov 2013 12:06:24 +0530 Subject: dmaengine: edma: remove duplicate kfree fixing of freeing descriptor memory was applied twice, so remove the one duplicate Reported-by: Wing-Keung Wang Signed-off-by: Vinod Koul --- drivers/dma/edma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 592f3be8b43..ab48430765b 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/edma.c @@ -428,7 +428,6 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg( if (echan->slot[i] < 0) { kfree(edesc); dev_err(dev, "Failed to allocate slot\n"); - kfree(edesc); return NULL; } } -- cgit v1.2.3-70-g09d2