Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210533
b: refs/heads/master
c: 61a5273
h: refs/heads/master
i:
  210531: 8dc19d8
v: v3
  • Loading branch information
Masami Hiramatsu authored and Arnaldo Carvalho de Melo committed Sep 8, 2010
1 parent 6b60e05 commit c090e20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9c55cb12c1c172e2d51e85fbb5a4796ca86b77e7
refs/heads/master: 61a527362234ac3352a91ac67c50c6f7cd248eb1
6 changes: 3 additions & 3 deletions trunk/kernel/trace/trace_kprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,9 @@ static int create_trace_probe(int argc, char **argv)
/* parse arguments */
ret = 0;
for (i = 0; i < argc && i < MAX_TRACE_ARGS; i++) {
/* Increment count for freeing args in error case */
tp->nr_args++;

/* Parse argument name */
arg = strchr(argv[i], '=');
if (arg)
Expand Down Expand Up @@ -1021,11 +1024,8 @@ static int create_trace_probe(int argc, char **argv)
ret = parse_probe_arg(arg, tp, &tp->args[i], is_return);
if (ret) {
pr_info("Parse error at argument%d. (%d)\n", i, ret);
kfree(tp->args[i].name);
goto error;
}

tp->nr_args++;
}

ret = register_trace_probe(tp);
Expand Down

0 comments on commit c090e20

Please sign in to comment.