提交 e3cb7e9f 编写于 作者: A Al Viro

tile: compat rt_sigreturn gets too enthusiastic about sigaltstack errors

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 008f1794
...@@ -248,7 +248,7 @@ long compat_sys_rt_sigreturn(void) ...@@ -248,7 +248,7 @@ long compat_sys_rt_sigreturn(void)
if (restore_sigcontext(regs, &frame->uc.uc_mcontext)) if (restore_sigcontext(regs, &frame->uc.uc_mcontext))
goto badframe; goto badframe;
if (compat_sys_sigaltstack(&frame->uc.uc_stack, NULL) != 0) if (compat_sys_sigaltstack(&frame->uc.uc_stack, NULL) == -EFAULT)
goto badframe; goto badframe;
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册