Commit e3cb7e9f authored by Al Viro's avatar Al Viro
Browse files

tile: compat rt_sigreturn gets too enthusiastic about sigaltstack errors



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 008f1794
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;