]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sh: kprobes: Default to NOTIFY_DONE for unhandled debug traps.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 8 Sep 2008 09:12:33 +0000 (18:12 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 8 Sep 2008 09:12:33 +0000 (18:12 +0900)
Presently this is doing a force_sig() SIGTRAP, which is already taken
care of in the generic code if no one asserts NOTIFY_STOP. Switch the
default return to NOTIFY_DONE in the case of unhandled traps, so that
the same trap may pass through to other users on the same die chain.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/kprobes.c

index fdd049e9ad862e6d4e2497f9a22dae09769bbe4f..75accf9b4209b64f7adc6abfafd5e552aaf5df1e 100644 (file)
@@ -474,7 +474,7 @@ int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
                                ret = NOTIFY_STOP;
                        } else {
                                /* Not a kprobe trap */
-                               force_sig(SIGTRAP, current);
+                               ret = NOTIFY_DONE;
                        }
                } else {
                        p = get_kprobe(addr);