aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/kprobes.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-09-08 18:12:33 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-09-08 18:12:33 +0900
commitee386de77419f9fedf206d84c4d4b2de0ead5bcb (patch)
tree465a797b46d8124f918e99948734b0528f2bec3b /arch/sh/kernel/kprobes.c
parentsh: kprobes: Use trapa #0x3a for breakpoint trap. (diff)
downloadlinux-dev-ee386de77419f9fedf206d84c4d4b2de0ead5bcb.tar.xz
linux-dev-ee386de77419f9fedf206d84c4d4b2de0ead5bcb.zip
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 '')
-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 fdd049e9ad86..75accf9b4209 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);