tracing: Protect ftrace_trace_arrays list in trace_events.c
authorAlexander Z Lam <azl@google.com>
Tue, 2 Jul 2013 02:37:54 +0000 (19:37 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 2 Jul 2013 03:30:08 +0000 (23:30 -0400)
commita82274151af2b075163e3c42c828529dee311487
tree0923f9f765266925e9c800a461917ea312d3cc16
parent2d71619c59fac95a5415a326162fa046161b938c
tracing: Protect ftrace_trace_arrays list in trace_events.c

There are multiple places where the ftrace_trace_arrays list is accessed in
trace_events.c without the trace_types_lock held.

Link: http://lkml.kernel.org/r/1372732674-22726-1-git-send-email-azl@google.com
Cc: Vaibhav Nagarnaik <vnagarnaik@google.com>
Cc: David Sharp <dhsharp@google.com>
Cc: Alexander Z Lam <lambchop468@gmail.com>
Cc: stable@vger.kernel.org # 3.10
Signed-off-by: Alexander Z Lam <azl@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_events.c