Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350100
b: refs/heads/master
c: 7e4e28c
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov committed Feb 8, 2013
1 parent bd95ac6 commit f3ab9c4
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: 4161824f18ff4f56f46595a4016c7315dd0d24f1
refs/heads/master: 7e4e28c53963e6cfa94d8109bb8f5233c5659048
6 changes: 3 additions & 3 deletions trunk/kernel/trace/trace_uprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ static int create_trace_uprobe(int argc, char **argv)
inode = igrab(path.dentry->d_inode);
path_put(&path);

if (!S_ISREG(inode->i_mode)) {
if (!inode || !S_ISREG(inode->i_mode)) {
ret = -EINVAL;
goto fail_address_parse;
}
Expand Down Expand Up @@ -544,7 +544,7 @@ static int probe_event_enable(struct trace_uprobe *tu, int flag)
struct uprobe_trace_consumer *utc;
int ret = 0;

if (!tu->inode || tu->consumer)
if (tu->consumer)
return -EINTR;

utc = kzalloc(sizeof(struct uprobe_trace_consumer), GFP_KERNEL);
Expand All @@ -568,7 +568,7 @@ static int probe_event_enable(struct trace_uprobe *tu, int flag)

static void probe_event_disable(struct trace_uprobe *tu, int flag)
{
if (!tu->inode || !tu->consumer)
if (!tu->consumer)
return;

uprobe_unregister(tu->inode, tu->offset, &tu->consumer->cons);
Expand Down

0 comments on commit f3ab9c4

Please sign in to comment.