]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: increment privatecnt when using dma_get_any_slave_channel
authorChristopher Freeman <cfreeman@nvidia.com>
Wed, 4 Mar 2015 09:16:58 +0000 (01:16 -0800)
committerVinod Koul <vinod.koul@intel.com>
Wed, 29 Apr 2015 11:17:57 +0000 (16:47 +0530)
commit1a424681a66153f864a5442815f0c2209334b56b
tree28329a099239bd98a4c53e3f153b5c53083247f9
parent17f0aaa1e5703a35089c97ad9ce80e0d8b5c210c
dmaengine: increment privatecnt when using dma_get_any_slave_channel

Channels allocated via dma_get_any_slave_channel were not increasing
the counter tracking private allocations.  When these channels were
released, privatecnt may erroneously fall to zero.  The DMA device
would then lose its DMA_PRIVATE cap and fail to allocate future private
channels (via private_candidate) as any allocations still outstanding
would incorrectly be seen as public allocations.

Signed-off-by: Christopher Freeman <cfreeman@nvidia.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmaengine.c