summaryrefslogtreecommitdiff
path: root/drivers/dma/mv_xor.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2015-03-27 14:35:52 +0300
committerJiri Slaby <jslaby@suse.cz>2015-04-22 09:58:39 +0300
commitc38aa9bba28f912bf2eaea861c0ddf541af75606 (patch)
tree45c2d6068becd76a303526691c8726a22cb04d7d /drivers/dma/mv_xor.c
parentd85168be83070a890e8bba49cbfe0a20238154db (diff)
downloadlinux-c38aa9bba28f912bf2eaea861c0ddf541af75606.tar.xz
dmaengine: omap-dma: Fix memory leak when terminating running transfer
commit 02d88b735f5a60f04dbf6d051b76e1877a0d0844 upstream. In omap_dma_start_desc the vdesc->node is removed from the virt-dma framework managed lists (to be precise from the desc_issued list). If a terminate_all comes before the transfer finishes the omap_desc will not be freed up because it is not in any of the lists and we stopped the DMA channel so the transfer will not going to complete. There is no special sequence for leaking memory when using cyclic (audio) transfer: with every start and stop of a cyclic transfer the driver leaks struct omap_desc worth of memory. Free up the allocated memory directly in omap_dma_terminate_all() since the framework will not going to do that for us. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> CC: <linux-omap@vger.kernel.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/dma/mv_xor.c')
0 files changed, 0 insertions, 0 deletions