Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349845
b: refs/heads/master
c: d24d7db
h: refs/heads/master
i:
  349843: cb17c00
v: v3
  • Loading branch information
Jovi Zhang authored and Steven Rostedt committed Jan 21, 2013
1 parent b8ff654 commit 5f110c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: d8a0349c0cea477322c66ea9362f10c62fad5f62
refs/heads/master: d24d7dbf3cc49b00a152e55e24f0eeb173c7a971
6 changes: 5 additions & 1 deletion trunk/kernel/trace/trace_uprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ static int create_trace_uprobe(int argc, char **argv)
goto fail_address_parse;

inode = igrab(path.dentry->d_inode);
if (!S_ISREG(inode->i_mode)) {
ret = -EINVAL;
goto fail_address_parse;
}

argc -= 2;
argv += 2;
Expand Down Expand Up @@ -356,7 +360,7 @@ static int create_trace_uprobe(int argc, char **argv)
if (inode)
iput(inode);

pr_info("Failed to parse address.\n");
pr_info("Failed to parse address or file.\n");

return ret;
}
Expand Down

0 comments on commit 5f110c0

Please sign in to comment.