aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/kprobes.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index d1edd8d5641e..231569e1e2c8 100644
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -1259,8 +1259,6 @@ NOKPROBE_SYMBOL(cleanup_rp_inst);
1259/* Add the new probe to ap->list */ 1259/* Add the new probe to ap->list */
1260static int add_new_kprobe(struct kprobe *ap, struct kprobe *p) 1260static int add_new_kprobe(struct kprobe *ap, struct kprobe *p)
1261{ 1261{
1262 BUG_ON(kprobe_gone(ap) || kprobe_gone(p));
1263
1264 if (p->post_handler) 1262 if (p->post_handler)
1265 unoptimize_kprobe(ap, true); /* Fall back to normal kprobe */ 1263 unoptimize_kprobe(ap, true); /* Fall back to normal kprobe */
1266 1264