Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1235868

Re: [PATCH] dmaengine: fix balance of privatecnt

From Vinod Koul <vinod.koul@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH] dmaengine: fix balance of privatecnt
Date 2015-09-30 10:10 +0200
Message-ID <qekCC-7xs-15@gated-at.bofh.it> (permalink)
References <qcaHn-6Yx-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] dmaengine: fix balance of privatecnt Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-09-24 11:10 +0200
  Re: [PATCH] dmaengine: fix balance of privatecnt Vinod Koul <vinod.koul@intel.com> - 2015-09-30 10:10 +0200

csiph-web