tracing/kprobe: Release kprobe print_fmt properly
authorJiri Olsa <jolsa@kernel.org>
Mon, 9 Jul 2018 14:19:06 +0000 (16:19 +0200)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 11 Jul 2018 19:50:52 +0000 (15:50 -0400)
commit0fc8c3581dd42bc8f530314ca86db2d861485731
treed89e7933d9e1dea25373f87fbcfc3339415ec9a1
parent1fe4293f4b8de75824935f8d8e9a99c7fc6873da
tracing/kprobe: Release kprobe print_fmt properly

We don't release tk->tp.call.print_fmt when destroying
local uprobe. Also there's missing print_fmt kfree in
create_local_trace_kprobe error path.

Link: http://lkml.kernel.org/r/20180709141906.2390-1-jolsa@kernel.org
Cc: stable@vger.kernel.org
Fixes: e12f03d7031a ("perf/core: Implement the 'perf_kprobe' PMU")
Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c