trace_kprobes: Fix memory leak
authorLai Jiangshan <laijs@cn.fujitsu.com>
Wed, 25 Nov 2009 08:32:21 +0000 (16:32 +0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 27 Nov 2009 05:43:04 +0000 (06:43 +0100)
commitabab9d37d2a826fcf588c5f30152dbe05c40111c
treecc4bbdafb5dbf1883d714c1a650c5cc03f83512b
parent0f1ef51d244809f417bdf45cdb00109fb6005672
trace_kprobes: Fix memory leak

tp->nr_args is not set before we "goto error",
it causes memory leak for free_trace_probe() use tp->nr_args
to free memory of args.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Acked-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4B0CEB95.2060107@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_kprobe.c