aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/kprobes.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/kernel/kprobes.c')
-rw-r--r--arch/i386/kernel/kprobes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/i386/kernel/kprobes.c b/arch/i386/kernel/kprobes.c
index e00f75ecf1a8..3fbef288c376 100644
--- a/arch/i386/kernel/kprobes.c
+++ b/arch/i386/kernel/kprobes.c
@@ -449,8 +449,7 @@ fastcall void *__kprobes trampoline_handler(struct pt_regs *regs)
449 break; 449 break;
450 } 450 }
451 451
452 BUG_ON(!orig_ret_address || (orig_ret_address == trampoline_address)); 452 kretprobe_assert(ri, orig_ret_address, trampoline_address);
453
454 spin_unlock_irqrestore(&kretprobe_lock, flags); 453 spin_unlock_irqrestore(&kretprobe_lock, flags);
455 454
456 hlist_for_each_entry_safe(ri, node, tmp, &empty_rp, hlist) { 455 hlist_for_each_entry_safe(ri, node, tmp, &empty_rp, hlist) {