Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350094
b: refs/heads/master
c: aba5102
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov committed Feb 8, 2013
1 parent 5dc0139 commit 409f5ed
Show file tree
Hide file tree
Showing 2 changed files with 9 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: a6cb3f6d51253e9cf21a38b17c025018117809d7
refs/heads/master: aba51024e7159c93914557caaa2b8cda26331091
9 changes: 8 additions & 1 deletion trunk/kernel/events/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,7 @@ pre_ssout(struct uprobe *uprobe, struct pt_regs *regs, unsigned long bp_vaddr)
{
struct uprobe_task *utask;
unsigned long xol_vaddr;
int err;

utask = current->utask;

Expand All @@ -1316,7 +1317,13 @@ pre_ssout(struct uprobe *uprobe, struct pt_regs *regs, unsigned long bp_vaddr)
utask->xol_vaddr = xol_vaddr;
utask->vaddr = bp_vaddr;

return arch_uprobe_pre_xol(&uprobe->arch, regs);
err = arch_uprobe_pre_xol(&uprobe->arch, regs);
if (unlikely(err)) {
xol_free_insn_slot(current);
return err;
}

return 0;
}

/*
Expand Down

0 comments on commit 409f5ed

Please sign in to comment.