summaryrefslogtreecommitdiff
path: root/drivers/dma/xilinx
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-09-29 20:45:05 +0300
committerVinod Koul <vinod.koul@intel.com>2016-09-30 20:52:26 +0300
commitfc878efe84c342441706fcdf776e08fe455fe9c1 (patch)
tree659ea88f0bd11b6b6afea75c365eee1b422e6953 /drivers/dma/xilinx
parent9f0df936b1b93a7fab5b9ed73009f43369c121ea (diff)
downloadlinux-fc878efe84c342441706fcdf776e08fe455fe9c1.tar.xz
dmaengine: jz4780: fix resource leaks on error exit return
In two cases when jz4780_dma_setup_hwdesc fails, there is a memory leak on the allocated desc and associated DMA pools on the error exit return path. Fix this by free'ing the resources before returning. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/xilinx')
0 files changed, 0 insertions, 0 deletions