From e3cb7e9f0d826b052b519f1ea18a1bd1718a6016 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Wed, 28 Nov 2012 21:43:21 -0500 Subject: [PATCH] tile: compat rt_sigreturn gets too enthusiastic about sigaltstack errors Signed-off-by: Al Viro --- arch/tile/kernel/compat_signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5