Skip to content

Commit

Permalink
dmaengine: edma: remove duplicate kfree
Browse files Browse the repository at this point in the history
fixing of freeing descriptor memory was applied twice, so remove the one
duplicate

Reported-by: Wing-Keung Wang <wingkeung.wang@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
  • Loading branch information
Vinod Koul committed Nov 13, 2013
1 parent cbf1e56 commit b6d5050
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/dma/edma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit b6d5050

Please sign in to comment.