Commit e3cb7e9f authored by Al Viro's avatar Al Viro

tile: compat rt_sigreturn gets too enthusiastic about sigaltstack errors

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 008f1794
......@@ -248,7 +248,7 @@ long compat_sys_rt_sigreturn(void)
if (restore_sigcontext(regs, &frame->uc.uc_mcontext))
goto badframe;
if (compat_sys_sigaltstack(&frame->uc.uc_stack, NULL) != 0)
if (compat_sys_sigaltstack(&frame->uc.uc_stack, NULL) == -EFAULT)
goto badframe;
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment