Эх сурвалжийг харах

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>

Ralf Baechle 20 жил өмнө
parent
commit
05b8042ac6

+ 1 - 1
arch/mips/kernel/traps.c

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