Commit b6d5050c authored by Vinod Koul's avatar Vinod Koul

dmaengine: edma: remove duplicate kfree

fixing of freeing descriptor memory was applied twice, so remove the one
duplicate
Reported-by: default avatarWing-Keung Wang <wingkeung.wang@gmail.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent cbf1e56e
......@@ -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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment