diff options
author | Oleg Nesterov <[email protected]> | 2013-07-19 17:36:44 +0200 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2013-07-19 14:32:22 -0400 |
commit | e70e78e3c83b536730e31231dd9b979768d8df3c (patch) | |
tree | d7aedcba5c94bdcaaf0e08b945e7a7639e2c283c /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | a644a7e9587802eabb2e229177606f6a74a60fc1 (diff) |
tracing: Kill the unbalanced tr->ref++ in tracing_buffers_open()
tracing_buffers_open() does trace_array_get() and then it wrongly
inrcements tr->ref again under trace_types_lock. This means that
every caller leaks trace_array:
# cd /sys/kernel/debug/tracing/
# mkdir instances/X
# true < instances/X/per_cpu/cpu0/trace_pipe_raw
# rmdir instances/X
rmdir: failed to remove `instances/X': Device or resource busy
Link: http://lkml.kernel.org/r/[email protected]
Cc: Ingo Molnar <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: [email protected] # 3.10
Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions