Skip to content

Commit

Permalink
dmaengine: edma: fix another memory leak
Browse files Browse the repository at this point in the history
commit 4b6271a fix a menory leak but one more existed in driver so fix that

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
  • Loading branch information
Vinod Koul committed Oct 24, 2013
1 parent 4b6271a commit 7261828
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/dma/edma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7261828

Please sign in to comment.