Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6d5050c authored by Vinod Koul's avatar Vinod Koul
Browse files

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
			}
		}