[PATCH] tracing: fix a potential mutex deadlock in register_tracer

2016-03-14 Thread Chunyu Hu
commit d39cdd2036a63eef17a14efbd969405ca5612886 ("tracing: Make tracer_flags use the right set_flag callback") introduces a potential mutex deadlock issue, as it forgets to free the mutex when allocaing the tracer_flags gets fail. This patch fix the issue. The issue was found by Dan Carpenter

[PATCH] tracing: fix a potential mutex deadlock in register_tracer

2016-03-14 Thread Chunyu Hu
commit d39cdd2036a63eef17a14efbd969405ca5612886 ("tracing: Make tracer_flags use the right set_flag callback") introduces a potential mutex deadlock issue, as it forgets to free the mutex when allocaing the tracer_flags gets fail. This patch fix the issue. The issue was found by Dan Carpenter