diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2015-09-24 12:03:35 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-09-30 13:30:08 +0530 |
commit | 214fc4e423ff38b41b60db2209cf49b4e9a7209b (patch) | |
tree | a66ae822330d8ee43275299d6669552bdfe6e48a /drivers/oprofile/oprofile_files.c | |
parent | 40482e64b0b84388561b00b880eeca7000f72d38 (diff) | |
download | op-kernel-dev-214fc4e423ff38b41b60db2209cf49b4e9a7209b.zip op-kernel-dev-214fc4e423ff38b41b60db2209cf49b4e9a7209b.tar.gz |
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 <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/oprofile/oprofile_files.c')
0 files changed, 0 insertions, 0 deletions