diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-09-08 05:12:33 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-09-08 05:12:33 -0400 |
commit | ee386de77419f9fedf206d84c4d4b2de0ead5bcb (patch) | |
tree | 465a797b46d8124f918e99948734b0528f2bec3b /arch | |
parent | 174b5c9923e0170c844e03d55a9f3fb3b329a8b7 (diff) |
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')
-rw-r--r-- | arch/sh/kernel/kprobes.c | 2 |
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, | |||
474 | ret = NOTIFY_STOP; | 474 | ret = NOTIFY_STOP; |
475 | } else { | 475 | } else { |
476 | /* Not a kprobe trap */ | 476 | /* Not a kprobe trap */ |
477 | force_sig(SIGTRAP, current); | 477 | ret = NOTIFY_DONE; |
478 | } | 478 | } |
479 | } else { | 479 | } else { |
480 | p = get_kprobe(addr); | 480 | p = get_kprobe(addr); |