diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-03 03:45:12 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-09-22 15:47:11 +0200 |
commit | f76f330809e0c9e7235584273b5a5d6adccded52 (patch) | |
tree | 7130f75428064a7df4c6d8da1b6ce66ebb3d5419 /arch/mips/kernel/signal.c | |
parent | MIPS: Malta: Don't crash on spurious interrupt. (diff) | |
download | linux-f76f330809e0c9e7235584273b5a5d6adccded52.tar.xz linux-f76f330809e0c9e7235584273b5a5d6adccded52.zip |
MIPS: Prevent hitting do_notify_resume() with !user_mode(regs).
Too late to do anything there...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/signal.c')
-rw-r--r-- | arch/mips/kernel/signal.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c index f2c09cfc60ac..0e1a5b8ae817 100644 --- a/arch/mips/kernel/signal.c +++ b/arch/mips/kernel/signal.c @@ -560,14 +560,6 @@ static void do_signal(struct pt_regs *regs) siginfo_t info; int signr; - /* - * We want the common case to go fast, which is why we may in certain - * cases get here from kernel mode. Just return without doing anything - * if so. - */ - if (!user_mode(regs)) - return; - signr = get_signal_to_deliver(&info, &ka, regs, NULL); if (signr > 0) { /* Whee! Actually deliver the signal. */ |