microblaze: rt_sigreturn is too trigger-happy about sigaltstack errors
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 20 Nov 2012 15:41:11 +0000 (10:41 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 29 Nov 2012 02:46:12 +0000 (21:46 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/microblaze/kernel/signal.c

index 3847e5b9c601f68e189ca21749300b6b7e416415..3903e3d11f5a557d673fbcfcb051e1fd17e49392 100644 (file)
@@ -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;