From: Al Viro Date: Thu, 29 Nov 2012 02:43:21 +0000 (-0500) Subject: tile: compat rt_sigreturn gets too enthusiastic about sigaltstack errors X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e3cb7e9f0d826b052b519f1ea18a1bd1718a6016;p=openwrt%2Fstaging%2Fblogic.git tile: compat rt_sigreturn gets too enthusiastic about sigaltstack errors Signed-off-by: Al Viro --- diff --git a/arch/tile/kernel/compat_signal.c b/arch/tile/kernel/compat_signal.c index 210a9bbae963..2e4cc69224a6 100644 --- a/arch/tile/kernel/compat_signal.c +++ b/arch/tile/kernel/compat_signal.c @@ -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;