tile: compat rt_sigreturn gets too enthusiastic about sigaltstack errors
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
008f179487
commit
e3cb7e9f0d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user