Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02232f8d authored by Al Viro's avatar Al Viro
Browse files

microblaze: rt_sigreturn is too trigger-happy about sigaltstack errors



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent afd3f96d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ asmlinkage long sys_rt_sigreturn(struct pt_regs *regs)

	/* It is more difficult to avoid calling this function than to
	 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;

	return rval;