https://github.com/torvalds/linux
Revision 05aa1a77dcf1b9f9c4fedf09a0a53e15d6b21738 authored by Robert Baldyga on 07 August 2015, 10:26:47 UTC, committed by Vinod Koul on 17 August 2015, 17:17:43 UTC
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 <k.kozlowski@samsung.com>
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent 2c6625c
History
Tip revision: 05aa1a77dcf1b9f9c4fedf09a0a53e15d6b21738 authored by Robert Baldyga on 07 August 2015, 10:26:47 UTC
dmaengine: fix balance of privatecnt inc/dec operations
Tip revision: 05aa1a7
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 5.3 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.7 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 314.0 KB
Makefile -rw-r--r-- 53.3 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top