Commit fb0e033f authored by Bruce D. Elliott's avatar Bruce D. Elliott Committed by David S. Miller

[SPARC64]: Fix ocndition code handling in do_rt_sigreturn.

parent ee4c18d0
......@@ -404,8 +404,8 @@ void do_rt_sigreturn(struct pt_regs *regs)
err |= copy_from_user(regs->u_regs, sf->regs.u_regs, sizeof(regs->u_regs));
/* User can only change condition codes in %tstate. */
regs->tstate &= ~(TSTATE_ICC);
regs->tstate |= (tstate & TSTATE_ICC);
regs->tstate &= ~(TSTATE_ICC | TSTATE_XCC);
regs->tstate |= (tstate & (TSTATE_ICC | TSTATE_XCC));
err |= __get_user(fpu_save, &sf->fpu_save);
if (fpu_save)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment