提交 5b89c004 编写于 作者: A Al Viro 提交者: Ralf Baechle

MIPS: Fix error values in case of bad_stack

We want EFAULT, not -<syscall number>
Signed-off-by: NAl 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: NRalf Baechle <ralf@linux-mips.org>
上级 8f5a00eb
...@@ -169,7 +169,7 @@ stackargs: ...@@ -169,7 +169,7 @@ stackargs:
* We probably should handle this case a bit more drastic. * We probably should handle this case a bit more drastic.
*/ */
bad_stack: bad_stack:
negu v0 # error li v0, EFAULT
sw v0, PT_R2(sp) sw v0, PT_R2(sp)
li t0, 1 # set error flag li t0, 1 # set error flag
sw t0, PT_R7(sp) sw t0, PT_R7(sp)
......
...@@ -156,7 +156,7 @@ trace_a_syscall: ...@@ -156,7 +156,7 @@ trace_a_syscall:
* The stackpointer for a call with more than 4 arguments is bad. * The stackpointer for a call with more than 4 arguments is bad.
*/ */
bad_stack: bad_stack:
dnegu v0 # error li v0, EFAULT
sd v0, PT_R2(sp) sd v0, PT_R2(sp)
li t0, 1 # set error flag li t0, 1 # set error flag
sd t0, PT_R7(sp) sd t0, PT_R7(sp)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册