aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/kprobes.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index f1c0e61a2cb..19c42cbf91a 100644
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -532,9 +532,7 @@ valid_p:
list_del_rcu(&p->list);
kfree(old_p);
}
- down(&kprobe_mutex);
- arch_remove_kprobe(p);
- up(&kprobe_mutex);
+ arch_remove_kprobe(p, &kprobe_mutex);
}
}