diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-03 03:45:12 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-01 15:58:10 +0200 |
commit | bfc83647bbbb2aaf748a582ed7d45fb1408d4671 (patch) | |
tree | b4685834725a134f0826d7ec6f3234e7964b4aaa /arch/mips/kernel/signal.c | |
parent | ia64: can't reach do_signal() when returning to kernel mode (diff) | |
download | linux-bfc83647bbbb2aaf748a582ed7d45fb1408d4671.tar.xz linux-bfc83647bbbb2aaf748a582ed7d45fb1408d4671.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>
Diffstat (limited to '')
-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. */ |