Skip to content
Commit 27bc944c authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Vinod Koul
Browse files

dmaengine: bcm2835-dma: Convert to use DMA pool

f9317829 dmaengine: bcm2835-dma: Fix memory leak when stopping a
	     running transfer

Fixed the memleak, but introduced another issue: the terminate_all callback
might be called with interrupts disabled and the dma_free_coherent() is
not allowed to be called when IRQs are disabled.
Convert the driver to use dma_pool_* for managing the list of control
blocks for the transfer.

Fixes: f9317829

 ("dmaengine: bcm2835-dma: Fix memory leak when stopping a running transfer")
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: default avatarMatthias Reichl <hias@horus.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent ef10b0b2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment