diff options
author | Alexander Z Lam <azl@google.com> | 2013-07-01 22:37:54 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-07-01 23:30:08 -0400 |
commit | a82274151af2b075163e3c42c828529dee311487 (patch) | |
tree | 0923f9f765266925e9c800a461917ea312d3cc16 /kernel/trace/trace.c | |
parent | 2d71619c59fac95a5415a326162fa046161b938c (diff) |
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>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index e04e7119633d..e36da7ff59bf 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -266,7 +266,7 @@ static struct tracer *trace_types __read_mostly; | |||
266 | /* | 266 | /* |
267 | * trace_types_lock is used to protect the trace_types list. | 267 | * trace_types_lock is used to protect the trace_types list. |
268 | */ | 268 | */ |
269 | static DEFINE_MUTEX(trace_types_lock); | 269 | DEFINE_MUTEX(trace_types_lock); |
270 | 270 | ||
271 | /* | 271 | /* |
272 | * serialize the access of the ring buffer | 272 | * serialize the access of the ring buffer |