]> git.baikalelectronics.ru Git - kernel.git/commit
dmatest: prevent memory leakage on error path in thread
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 22 Aug 2014 12:19:44 +0000 (15:19 +0300)
committerVinod Koul <vinod.koul@intel.com>
Tue, 23 Sep 2014 15:20:39 +0000 (20:50 +0530)
commite8f7e821d1736e1a31e14eb8ee01a119a676534d
treeb6e2fa67247c3aeb42adcc7777d99033f1f3ebf6
parentb2da9a7f9d68dcba689f3da50f878a844038d736
dmatest: prevent memory leakage on error path in thread

When we fail to allocate memory for thread->srcs or thread->dsts and src_cnt or
dst_cnt great than 1 we leak memory on error path. This patch fixes the issue.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmatest.c