Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9534
b: refs/heads/master
c: 2d8ab6a
h: refs/heads/master
v: v3
  • Loading branch information
Ananth N Mavinakayanahalli authored and Linus Torvalds committed Oct 1, 2005
1 parent 9e63ee8 commit d40bda5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 702c96d55059b4a8e5b1eb112ee3b1804708a1bd
refs/heads/master: 2d8ab6ad6edf0e8709da9ad24e3f023503f76cee
8 changes: 4 additions & 4 deletions trunk/arch/ppc64/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ int __kprobes arch_prepare_kprobe(struct kprobe *p)

/* insn must be on a special executable page on ppc64 */
if (!ret) {
up(&kprobe_mutex);
p->ainsn.insn = get_insn_slot();
down(&kprobe_mutex);
p->ainsn.insn = get_insn_slot();
up(&kprobe_mutex);
if (!p->ainsn.insn)
ret = -ENOMEM;
}
Expand Down Expand Up @@ -90,9 +90,9 @@ void __kprobes arch_disarm_kprobe(struct kprobe *p)

void __kprobes arch_remove_kprobe(struct kprobe *p)
{
up(&kprobe_mutex);
free_insn_slot(p->ainsn.insn);
down(&kprobe_mutex);
free_insn_slot(p->ainsn.insn);
up(&kprobe_mutex);
}

static inline void prepare_singlestep(struct kprobe *p, struct pt_regs *regs)
Expand Down

0 comments on commit d40bda5

Please sign in to comment.