Skip to content
Commit cb9d41ec authored by Christopher Freeman's avatar Christopher Freeman Committed by popcornmix
Browse files

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: default avatarChristopher Freeman <cfreeman@nvidia.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 121d87c8
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