Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350099
b: refs/heads/master
c: 4161824
h: refs/heads/master
i:
  350097: f899ce7
  350095: c9ec5bf
v: v3
  • Loading branch information
Oleg Nesterov committed Feb 8, 2013
1 parent c870639 commit bd95ac6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: 84d7ed799fd6c1366547d88ddb8188c65de3b94f
refs/heads/master: 4161824f18ff4f56f46595a4016c7315dd0d24f1
13 changes: 7 additions & 6 deletions trunk/kernel/trace/trace_uprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,17 +552,18 @@ static int probe_event_enable(struct trace_uprobe *tu, int flag)
return -EINTR;

utc->cons.handler = uprobe_dispatcher;
utc->tu = tu;
tu->consumer = utc;
tu->flags |= flag;

ret = uprobe_register(tu->inode, tu->offset, &utc->cons);
if (ret) {
tu->consumer = NULL;
tu->flags &= ~flag;
kfree(utc);
return ret;
}

tu->flags |= flag;
utc->tu = tu;
tu->consumer = utc;

return 0;
return ret;
}

static void probe_event_disable(struct trace_uprobe *tu, int flag)
Expand Down

0 comments on commit bd95ac6

Please sign in to comment.