Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1002
b: refs/heads/master
c: 04dea5f
h: refs/heads/master
v: v3
  • Loading branch information
Prasanna S Panchamukhi authored and Linus Torvalds committed May 5, 2005
1 parent 51747f5 commit c740522
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: 0b9e2cac8a56e197d0a9e06268db4c8652d23dd5
refs/heads/master: 04dea5f93231204cc3ca0ab793ce76dbb10c86ba
6 changes: 5 additions & 1 deletion trunk/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,17 @@ int register_kprobe(struct kprobe *p)
void unregister_kprobe(struct kprobe *p)
{
unsigned long flags;
arch_remove_kprobe(p);
spin_lock_irqsave(&kprobe_lock, flags);
if (!get_kprobe(p->addr)) {
spin_unlock_irqrestore(&kprobe_lock, flags);
return;
}
*p->addr = p->opcode;
hlist_del(&p->hlist);
flush_icache_range((unsigned long) p->addr,
(unsigned long) p->addr + sizeof(kprobe_opcode_t));
spin_unlock_irqrestore(&kprobe_lock, flags);
arch_remove_kprobe(p);
}

static struct notifier_block kprobe_exceptions_nb = {
Expand Down

0 comments on commit c740522

Please sign in to comment.