Skip to content

Commit

Permalink
sh: kprobes: Default to NOTIFY_DONE for unhandled debug traps.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Sep 8, 2008
1 parent 174b5c9 commit ee386de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ee386de

Please sign in to comment.