summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorYao Jiang <yaojia@codeaurora.org>2018-09-27 15:31:11 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-10-07 18:34:52 -0700
commit5fef3cdf5adcd68c76430356e3abc7b092b6a5ba (patch)
treebdad8eafc323819a0e84cf4583674da6be208de3 /tools/perf/scripts/python/check-perf-trace.py
parent3acc958e8df36b84ee25c950b1f7e39931a6e0bc (diff)
soc: qcom: hab: fix the leak risk in hab_vchan_get
When getting a vchan after receiving a message, it has probability that this vchan is closed concurrently. So when refcount is increased by kref_get_unless_zero, but flag vchan->otherend_closed or vchan->closed is true at this time, it will return vchan as NULL, and the hab_vchan_put will not be called in hab_msg_rev. So adjust the timing here can avoid the leak risk. Change-Id: If78c1c41bc4fd05b3288c0324bb9e0aed8493c5f Signed-off-by: Yao Jiang <yaojia@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions