提交 02232f8d 编写于 作者: A Al Viro

microblaze: rt_sigreturn is too trigger-happy about sigaltstack errors

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 afd3f96d
...@@ -111,7 +111,7 @@ asmlinkage long sys_rt_sigreturn(struct pt_regs *regs) ...@@ -111,7 +111,7 @@ asmlinkage long sys_rt_sigreturn(struct pt_regs *regs)
/* It is more difficult to avoid calling this function than to /* It is more difficult to avoid calling this function than to
call it and ignore errors. */ call it and ignore errors. */
if (do_sigaltstack(&frame->uc.uc_stack, NULL, regs->r1)) if (do_sigaltstack(&frame->uc.uc_stack, NULL, regs->r1) == -EFAULT)
goto badframe; goto badframe;
return rval; return rval;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部