Fix one more case of computing the return EPC after the registers have

already been modified.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Ralf Baechle 2005-04-12 20:26:05 +00:00
parent 6dd0468852
commit 05b8042ac6
1 changed files with 1 additions and 1 deletions

View File

@ -447,9 +447,9 @@ static inline void simulate_sc(struct pt_regs *regs, unsigned int opcode)
preempt_disable();
if (ll_bit == 0 || ll_task != current) {
compute_return_epc(regs);
regs->regs[reg] = 0;
preempt_enable();
compute_return_epc(regs);
return;
}