diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2010-09-28 19:50:47 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-10-18 17:59:03 +0200 |
commit | 5b89c0044e048842245193b200b61e5f998abd9a (patch) | |
tree | d2908dcdfaf8903b6af5d5731f5ec2a87fc50b67 /arch/mips/kernel/scall32-o32.S | |
parent | MIPS: Sanitize restart logics (diff) | |
download | linux-5b89c0044e048842245193b200b61e5f998abd9a.tar.xz linux-5b89c0044e048842245193b200b61e5f998abd9a.zip |
MIPS: Fix error values in case of bad_stack
We want EFAULT, not -<syscall number>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-kernel@vger.kernel.org
Cc: linux-arch@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1699/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/scall32-o32.S')
-rw-r--r-- | arch/mips/kernel/scall32-o32.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index 73a061e85531..84b41797fae1 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S @@ -169,7 +169,7 @@ stackargs: * We probably should handle this case a bit more drastic. */ bad_stack: - negu v0 # error + li v0, EFAULT sw v0, PT_R2(sp) li t0, 1 # set error flag sw t0, PT_R7(sp) |