]> Pileus Git - ~andy/linux/blobdiff - arch/i386/kernel/traps.c
[PATCH] Kprobes: Incorrect handling of probes on ret/lret instruction
[~andy/linux] / arch / i386 / kernel / traps.c
index d70819481f6eb1af7de9b4bc5c05e7d78b0a43af..00c63419c06f80f0af9ce17f4b7f78e18dd25df2 100644 (file)
@@ -643,16 +643,15 @@ void unset_nmi_callback(void)
 }
 
 #ifdef CONFIG_KPROBES
-fastcall int do_int3(struct pt_regs *regs, long error_code)
+fastcall void do_int3(struct pt_regs *regs, long error_code)
 {
        if (notify_die(DIE_INT3, "int3", regs, error_code, 3, SIGTRAP)
                        == NOTIFY_STOP)
-               return 1;
+               return;
        /* This is an interrupt gate, because kprobes wants interrupts
        disabled.  Normal trap handlers don't. */
        restore_interrupts(regs);
        do_trap(3, SIGTRAP, "int3", 1, regs, error_code, NULL);
-       return 0;
 }
 #endif