projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ea1c41
)
tracing/core: fix missing mutex unlock on tracing_set_tracer()
author
Frederic Weisbecker
<fweisbec@gmail.com>
Sun, 15 Mar 2009 21:10:39 +0000
(22:10 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 16 Mar 2009 08:13:17 +0000
(09:13 +0100)
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>
kernel/trace/trace.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/trace.c
b/kernel/trace/trace.c
index efe3202c02092188d14a3eb32f8c9d92024a8dca..c0cf946d42f574843b5a95836f282cc89899abe4 100644
(file)
--- a/
kernel/trace/trace.c
+++ b/
kernel/trace/trace.c
@@
-2494,7
+2494,7
@@
static int tracing_set_tracer(const char *buf)
if (!ring_buffer_expanded) {
ret = tracing_resize_ring_buffer(trace_buf_size);
if (ret < 0)
-
return re
t;
+
goto ou
t;
ret = 0;
}