dmaengine: hsu: Fix memory leak when stopping a running transfer
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 26 May 2015 10:11:28 +0000 (13:11 +0300)
committerVinod Koul <vinod.koul@intel.com>
Tue, 2 Jun 2015 13:03:08 +0000 (18:33 +0530)
commit429770823d961187c39df490d49683c467b10065
tree1b64e2ad6ce073b73c31faed43653151cd0584cd
parent81cc6edc08705ac0146fe6ac14a0982a31ce6f3d
dmaengine: hsu: Fix memory leak when stopping a running transfer

The vd->node is removed from the lists when the transfer started so the
vchan_get_all_descriptors() will not find it. This results memory leak.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
[andy: fix the typo to prevent a compilation error]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/hsu/hsu.c