dma: edma: Fix memory leak
authorValentin Ilie <valentin.ilie@gmail.com>
Thu, 24 Oct 2013 13:14:22 +0000 (16:14 +0300)
committerVinod Koul <vinod.koul@intel.com>
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 <valentin.ilie@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c