diff options
| author | Yao Jiang <yaojia@codeaurora.org> | 2018-09-27 11:53:55 +0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-10-07 18:33:31 -0700 |
| commit | 3acc958e8df36b84ee25c950b1f7e39931a6e0bc (patch) | |
| tree | 5c8cc37b1fcc315d4f1b48308ebb39c1229ec0f4 /tools/perf/scripts/python/cs-trace-ranges.py | |
| parent | 3b8fc0b7a3fcc809378d82dbf66b417e186af205 (diff) | |
soc: qcom: hab: replace kref_get with kref_get_unless_zero
If refcount was 0 before increment, it maybe has a race condition that
this kref is freeing by some other thread right now. In this case we should
not increments refcount, so replace with kref_get_unless_zero.
Change-Id: Ic15eaefc111770a966094d05b19eca2a04d52fc2
Signed-off-by: Yao Jiang <yaojia@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/cs-trace-ranges.py')
0 files changed, 0 insertions, 0 deletions
