diff options
author | Chunyu Hu <[email protected]> | 2016-03-14 20:35:41 +0800 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2016-03-18 10:36:21 -0400 |
commit | c8ca003b2fde177b83de87f9f20f6a5933fb50bf (patch) | |
tree | 05f03d5ecb63b05c86a4846902b2d7b05731cc29 /tools/perf/scripts/python/netdev-times.py | |
parent | 6363c6b599ae67b779d01a48642a7c0d7d721814 (diff) |
tracing: Fix return while holding a lock in register_tracer()
commit d39cdd2036a6 ("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.
The issue was found by Dan Carpenter through Smatch static code check tool.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: d39cdd2036a6 ("tracing: Make tracer_flags use the right set_flag callback")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Chunyu Hu <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions