tracing: Get trace_array ref counts when accessing trace files
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 2 Jul 2013 03:34:22 +0000 (23:34 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 2 Jul 2013 14:17:04 +0000 (10:17 -0400)
commit7b85af63034818e43aee6c1d7bf1c7c6796a9073
tree4bc354897ff28147a5aedb7c318608a30d46e61b
parentff451961a8b2a17667a7bfa39c86fb9b351445db
tracing: Get trace_array ref counts when accessing trace files

When a trace file is opened that may access a trace array, it must
increment its ref count to prevent it from being deleted.

Cc: stable@vger.kernel.org # 3.10
Reported-by: Alexander Lam <azl@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c