Skip to content

Commit

Permalink
Fix one more case of computing the return EPC after the registers have
Browse files Browse the repository at this point in the history
already been modified.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent 6dd0468 commit 05b8042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 05b8042

Please sign in to comment.