Commit e5aeee51 authored by Alexander Levin's avatar Alexander Levin Committed by Thomas Gleixner
Browse files

perf/core: Don't release cred_guard_mutex if not taken

If we failed to acquire task's cred_guard_mutex we shouldn't proceed
to release it in the error path.

Fixes: a63fbed7

 ("perf/tracing/cpuhotplug: Fix locking order")
Signed-off-by: default avatarAlexander Levin <alexander.levin@verizon.com>
Cc: peterz@infradead.org
Cc: rostedt@goodmis.org
Cc: mathieu.desnoyers@efficios.com
Cc: mhiramat@kernel.org
Cc: paulmck@linux.vnet.ibm.com
Cc: bigeasy@linutronix.de
Link: http://lkml.kernel.org/r/20170603033903.12056-1-alexander.levin@verizon.com


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 49dfe2a6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment