]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: bcm2835-dma: Fix memory leak when stopping a running transfer
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 27 Mar 2015 11:35:53 +0000 (13:35 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 30 Mar 2015 17:47:08 +0000 (23:17 +0530)
commit621e7894d66c0ab5e12331f0afda06f0c8be73d5
treeb8751dda152f47d2048ce7d3f1998281c0d21127
parent0ed435680550efdb2fb793c2caba51360d07dac2
dmaengine: bcm2835-dma: 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>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/bcm2835-dma.c