From: Peter Ujfalusi Date: Thu, 24 Sep 2015 09:03:35 +0000 (+0300) Subject: dmaengine: fix balance of privatecnt X-Git-Tag: omap-for-v4.3/fixes-rc5~51^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=214fc4e423ff38b41b60db2209cf49b4e9a7209b;p=pandora-kernel.git dmaengine: fix balance of privatecnt dma_release_channel() decrements privatecnt counter and almost all dma_get* function increments it with the exception of dma_get_slave_channel(). In most cases this does not cause issue since normally the channel is not requested and released, but if a driver requests DMA channel via dma_get_slave_channel() and releases the channel the privatecnt will be unbalanced and this will prevent for example getting channel for memcpy. Signed-off-by: Peter Ujfalusi Signed-off-by: Vinod Koul --- Reading git-diff-tree failed