Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350098
b: refs/heads/master
c: 84d7ed7
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov committed Feb 8, 2013
1 parent f899ce7 commit c870639
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: e8440c1458ba571bc3fac8a6beb53ff604199f5b
refs/heads/master: 84d7ed799fd6c1366547d88ddb8188c65de3b94f
10 changes: 6 additions & 4 deletions trunk/kernel/trace/trace_uprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,16 +253,18 @@ static int create_trace_uprobe(int argc, char **argv)
if (ret)
goto fail_address_parse;

ret = kstrtoul(arg, 0, &offset);
if (ret)
goto fail_address_parse;

inode = igrab(path.dentry->d_inode);
path_put(&path);

if (!S_ISREG(inode->i_mode)) {
ret = -EINVAL;
goto fail_address_parse;
}

ret = kstrtoul(arg, 0, &offset);
if (ret)
goto fail_address_parse;

argc -= 2;
argv += 2;

Expand Down

0 comments on commit c870639

Please sign in to comment.