summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-11-28 21:43:21 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-11-28 21:43:21 -0500
commite3cb7e9f0d826b052b519f1ea18a1bd1718a6016 (patch)
tree4b023c114b1a5ccd59c6648feb7d6d9cfc23f5b7
parent008f17948725c112a3422f72ed57fdc980e146a8 (diff)
tile: compat rt_sigreturn gets too enthusiastic about sigaltstack errors
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--arch/tile/kernel/compat_signal.c2
1 files changed, 1 insertions, 1 deletions
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;