Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287217
b: refs/heads/master
c: 55ca614
h: refs/heads/master
i:
  287215: 0a46735
v: v3
  • Loading branch information
Jiang Liu authored and Linus Torvalds committed Feb 4, 2012
1 parent 870529e commit 3de6f96
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: cbcb8346054073d000ecac324763372d6abd44ac
refs/heads/master: 55ca6140e9bb307efc97a9301a4f501de02a6fd6
6 changes: 5 additions & 1 deletion trunk/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1673,8 +1673,12 @@ static int __kprobes pre_handler_kretprobe(struct kprobe *p,
ri->rp = rp;
ri->task = current;

if (rp->entry_handler && rp->entry_handler(ri, regs))
if (rp->entry_handler && rp->entry_handler(ri, regs)) {
raw_spin_lock_irqsave(&rp->lock, flags);
hlist_add_head(&ri->hlist, &rp->free_instances);
raw_spin_unlock_irqrestore(&rp->lock, flags);
return 0;
}

arch_prepare_kretprobe(ri, regs);

Expand Down

0 comments on commit 3de6f96

Please sign in to comment.