Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375946
b: refs/heads/master
c: 22047b8
h: refs/heads/master
v: v3
  • Loading branch information
Masami Hiramatsu authored and Ralf Baechle committed May 22, 2013
1 parent 67616eb commit 8b09ad8
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 087d990b371c59edbfc119600e2d2eda18366292
refs/heads/master: 22047b85170280b0ca59ce4befd0fa1f71a4ec16
5 changes: 4 additions & 1 deletion trunk/arch/mips/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ void __kprobes arch_disarm_kprobe(struct kprobe *p)

void __kprobes arch_remove_kprobe(struct kprobe *p)
{
free_insn_slot(p->ainsn.insn, 0);
if (p->ainsn.insn) {
free_insn_slot(p->ainsn.insn, 0);
p->ainsn.insn = NULL;
}
}

static void save_previous_kprobe(struct kprobe_ctlblk *kcb)
Expand Down

0 comments on commit 8b09ad8

Please sign in to comment.