]> git.hungrycats.org Git - linux/commitdiff
[PATCH] kprobes exception notifier fix 2
authorPrasanna S. Panchamukhi <prasanna@in.ibm.com>
Fri, 8 Oct 2004 00:33:26 +0000 (17:33 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Oct 2004 00:33:26 +0000 (17:33 -0700)
This patch adds a few NOTIFY_STOP missed out in the eariler patch.

Signed-Off-By: Prasanna S Panchamukhi <prasanna@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/traps.c

index 70c19c51dcd4f499beb2c8b5935610ded355902f..e8889024ff2835557ee2637a8c8ae11eb1c23ef2 100644 (file)
@@ -422,7 +422,7 @@ static inline void do_trap(int trapnr, int signr, char *str, int vm86,
 asmlinkage void do_##name(struct pt_regs * regs, long error_code) \
 { \
        if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) \
-                                               == NOTIFY_OK) \
+                                               == NOTIFY_STOP) \
                return; \
        do_trap(trapnr, signr, str, 0, regs, error_code, NULL); \
 }
@@ -436,7 +436,7 @@ asmlinkage void do_##name(struct pt_regs * regs, long error_code) \
        info.si_code = sicode; \
        info.si_addr = (void __user *)siaddr; \
        if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) \
-                                               == NOTIFY_BAD) \
+                                               == NOTIFY_STOP) \
                return; \
        do_trap(trapnr, signr, str, 0, regs, error_code, &info); \
 }
@@ -445,7 +445,7 @@ asmlinkage void do_##name(struct pt_regs * regs, long error_code) \
 asmlinkage void do_##name(struct pt_regs * regs, long error_code) \
 { \
        if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) \
-                                               == NOTIFY_OK) \
+                                               == NOTIFY_STOP) \
                return; \
        do_trap(trapnr, signr, str, 1, regs, error_code, NULL); \
 }