diff options
Diffstat (limited to 'kernel/trace/trace_kprobe.c')
-rw-r--r-- | kernel/trace/trace_kprobe.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index 79ce6a2bd74f..82e85836d05e 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c | |||
@@ -704,10 +704,12 @@ static int create_trace_probe(int argc, char **argv) | |||
704 | ret = parse_probe_arg(arg, &tp->args[i].fetch, is_return); | 704 | ret = parse_probe_arg(arg, &tp->args[i].fetch, is_return); |
705 | if (ret) { | 705 | if (ret) { |
706 | pr_info("Parse error at argument%d. (%d)\n", i, ret); | 706 | pr_info("Parse error at argument%d. (%d)\n", i, ret); |
707 | kfree(tp->args[i].name); | ||
707 | goto error; | 708 | goto error; |
708 | } | 709 | } |
710 | |||
711 | tp->nr_args++; | ||
709 | } | 712 | } |
710 | tp->nr_args = i; | ||
711 | 713 | ||
712 | ret = register_trace_probe(tp); | 714 | ret = register_trace_probe(tp); |
713 | if (ret) | 715 | if (ret) |