]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ftrace: Fix selftest goto location on error
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 1 Sep 2017 16:04:09 +0000 (12:04 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 1 Sep 2017 16:04:09 +0000 (12:04 -0400)
commit46320a6acc4fb58f04bcf78c4c942cc43b20f986
tree26cae67bb94bfc0ef030a2d437e001fefcd1aa3b
parent2a5bfe47624bfc835aa0632a0505ba55576c98db
ftrace: Fix selftest goto location on error

In the second iteration of trace_selftest_ops(), the error goto label is
wrong in the case where trace_selftest_test_global_cnt is off. In the
case of error, it leaks the dynamic ops that was allocated.

Cc: stable@vger.kernel.org
Fixes: 95950c2e ("ftrace: Add self-tests for multiple function trace users")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_selftest.c