summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorSinan Kaya <okaya@codeaurora.org>2016-08-31 18:10:27 +0300
committerVinod Koul <vinod.koul@intel.com>2016-08-31 18:57:32 +0300
commit8a31f8b5db65b860fd0d358dc27f6daf26074406 (patch)
tree2464951e1e9b2eaa2930294abe5c2c2b685bb35c /tools/perf
parent73fc45e3ce7838e6f47228dd51144c492931e8ad (diff)
downloadlinux-8a31f8b5db65b860fd0d358dc27f6daf26074406.tar.xz
dmaengine: qcom_hidma: release the descriptor before the callback
There is a race condition between data transfer callback and descriptor free code. The callback routine may decide to clear the resources even though the descriptor has not yet been freed. Instead of calling the callback first and then releasing the memory, this code is changing the order to return the descriptor back to the free pool and then call the user provided callback. Signed-off-by: Sinan Kaya <okaya@codeaurora.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions