[for-next-3.11][PATCH 2/2] tracing: Kill the unbalanced tr->ref++ in tracing_buffers_open()

2013-07-19 Thread Steven Rostedt
From: Oleg Nesterov 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 <

[for-next-3.11][PATCH 2/2] tracing: Kill the unbalanced tr-ref++ in tracing_buffers_open()

2013-07-19 Thread Steven Rostedt
From: Oleg Nesterov o...@redhat.com 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