dma: edma: Fix memory leak
authorValentin Ilie <[email protected]>
Thu, 24 Oct 2013 13:14:22 +0000 (16:14 +0300)
committerVinod Koul <[email protected]>
Thu, 24 Oct 2013 16:46:15 +0000 (22:16 +0530)
commit4b6271a64463f4fcbaf8b2e1d84704b7eb8c407c
treefed7c03ad0ff015ade5f52ad273580656788b57f
parent18ebd564e45eacd349daa31cf865183d578653d7
dma: edma: Fix memory leak

When it fails to allocate a slot, edesc should be free'd before return;

Signed-off-by: Valentin Ilie <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
drivers/dma/edma.c