Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05b8042a authored by Ralf Baechle's avatar Ralf Baechle
Browse files

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


already been modified.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 6dd04688
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}