aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-03-15 17:10:39 -0400
committerIngo Molnar <mingo@elte.hu>2009-03-16 04:13:17 -0400
commit59f586db98919d7d9c43527b26c8de1cdf9ed912 (patch)
treed77ae20815666a1c94dc177af974f88b8102fd38 /kernel/trace/trace.c
parent0ea1c4156bf9e2eb370cc5c6fa6eb112bd844dec (diff)
tracing/core: fix missing mutex unlock on tracing_set_tracer()
Impact: fix possible locking imbalance In case of ring buffer resize failure, tracing_set_tracer forgot to release trace_types_lock. Fix it. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <1237151439-6755-5-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index efe3202c0209..c0cf946d42f5 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2494,7 +2494,7 @@ static int tracing_set_tracer(const char *buf)
2494 if (!ring_buffer_expanded) { 2494 if (!ring_buffer_expanded) {
2495 ret = tracing_resize_ring_buffer(trace_buf_size); 2495 ret = tracing_resize_ring_buffer(trace_buf_size);
2496 if (ret < 0) 2496 if (ret < 0)
2497 return ret; 2497 goto out;
2498 ret = 0; 2498 ret = 0;
2499 } 2499 }
2500 2500