Files
erofs-linux/drivers/dma
Robert Baldyga 05aa1a77dc dmaengine: fix balance of privatecnt inc/dec operations
This patch increments privatecnt value and set DMA_PRIVATE in device
caps in dma_request_slave_channel() function. This is needed to keep
privatecnt increment/decrement balance.

As function dma_release_channel() decrements privatecnt counter, we need
to increment it when channel is requested. Otherwise privatecnt drops
into negatives after few dma_release_channel() calls.

Reported-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Robert Baldyga <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
2015-08-17 22:47:43 +05:30
..
2015-07-17 16:39:53 -07:00
…
…
…
…
…