2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 18:53:52 +08:00

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>
This commit is contained in:
Frederic Weisbecker 2009-03-15 22:10:39 +01:00 committed by Ingo Molnar
parent 0ea1c4156b
commit 59f586db98

View File

@ -2494,7 +2494,7 @@ static int tracing_set_tracer(const char *buf)
if (!ring_buffer_expanded) { if (!ring_buffer_expanded) {
ret = tracing_resize_ring_buffer(trace_buf_size); ret = tracing_resize_ring_buffer(trace_buf_size);
if (ret < 0) if (ret < 0)
return ret; goto out;
ret = 0; ret = 0;
} }