]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: bcm2835-dma: Convert to use DMA pool
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 16 Nov 2015 11:09:03 +0000 (13:09 +0200)
committerVinod Koul <vinod.koul@intel.com>
Sat, 5 Dec 2015 10:06:32 +0000 (15:36 +0530)
commitbb5fbf34dff95fde51dac50203d83ece1e5e754f
tree1f720f5e564845062cd9eeb911ad427d95b37453
parent109ea47da92e6216896d58775fe6b0a2ae2ff2b8
dmaengine: bcm2835-dma: Convert to use DMA pool

251bf6701373 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: 251bf6701373 ("dmaengine: bcm2835-dma: Fix memory leak when stopping a running transfer")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/bcm2835-dma.c