Re: [PATCH] dmaengine: fix balance of privatecnt

From: Vinod Koul
Date: Wed Sep 30 2015 - 04:01:40 EST


On Thu, Sep 24, 2015 at 12:03:35PM +0300, Peter Ujfalusi wrote:
> 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.

Applied, thanks

--
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/