summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/scall64-o32.S
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2010-09-28 18:50:47 +0100
committerRalf Baechle <ralf@linux-mips.org>2010-10-18 16:59:03 +0100
commit5b89c0044e048842245193b200b61e5f998abd9a (patch)
treed2908dcdfaf8903b6af5d5731f5ec2a87fc50b67 /arch/mips/kernel/scall64-o32.S
parent8f5a00eb422ed86e77bb8f67e08b9fe6d30f679a (diff)
downloadblackbird-op-linux-5b89c0044e048842245193b200b61e5f998abd9a.tar.gz
blackbird-op-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/scall64-o32.S')
-rw-r--r--arch/mips/kernel/scall64-o32.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S
index 7ce0a3685627..d2bc285413dc 100644
--- a/arch/mips/kernel/scall64-o32.S
+++ b/arch/mips/kernel/scall64-o32.S
@@ -156,7 +156,7 @@ trace_a_syscall:
* The stackpointer for a call with more than 4 arguments is bad.
*/
bad_stack:
- dnegu v0 # error
+ li v0, EFAULT
sd v0, PT_R2(sp)
li t0, 1 # set error flag
sd t0, PT_R7(sp)
OpenPOWER on IntegriCloud