diff options
author | Leon Yu <chianglungyu@gmail.com> | 2015-02-26 20:43:33 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-03-13 10:02:18 +0100 |
commit | d415a7f1c1a8406b22d95b943c66a5b73a37bc19 (patch) | |
tree | e066cf93995f37e9a759d38bcb4a2741d27670fd /tools | |
parent | e678fefa07f63c8f757d61b621fd1e5569cd63be (diff) |
perf: Fix context leak in put_event()
Commit:
a83fe28e2e45 ("perf: Fix put_event() ctx lock")
changed the locking logic in put_event() by replacing mutex_lock_nested()
with perf_event_ctx_lock_nested(), but didn't fix the subsequent
mutex_unlock() with a correct counterpart, perf_event_ctx_unlock().
Contexts are thus leaked as a result of incremented refcount
in perf_event_ctx_lock_nested().
Signed-off-by: Leon Yu <chianglungyu@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Fixes: a83fe28e2e45 ("perf: Fix put_event() ctx lock")
Link: http://lkml.kernel.org/r/1424954613-5034-1-git-send-email-chianglungyu@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions