summaryrefslogtreecommitdiff
path: root/arch/sh/kernel/kprobes.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-09-08 09:12:33 (GMT)
committerPaul Mundt <lethal@linux-sh.org>2008-09-08 09:12:33 (GMT)
commitee386de77419f9fedf206d84c4d4b2de0ead5bcb (patch)
tree465a797b46d8124f918e99948734b0528f2bec3b /arch/sh/kernel/kprobes.c
parent174b5c9923e0170c844e03d55a9f3fb3b329a8b7 (diff)
downloadlinux-ee386de77419f9fedf206d84c4d4b2de0ead5bcb.tar.xz
sh: kprobes: Default to NOTIFY_DONE for unhandled debug traps.
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>
Diffstat (limited to 'arch/sh/kernel/kprobes.c')
-rw-r--r--arch/sh/kernel/kprobes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/kprobes.c b/arch/sh/kernel/kprobes.c
index fdd049e..75accf9 100644
--- a/arch/sh/kernel/kprobes.c
+++ b/arch/sh/kernel/kprobes.c
@@ -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);