From 05b8042ac6d35383c2fcc171ed932426c4e09ed1 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 12 Apr 2005 20:26:05 +0000 Subject: [PATCH] Fix one more case of computing the return EPC after the registers have already been modified. Signed-off-by: Ralf Baechle --- arch/mips/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 77f796b9975e..94d9141c04c1 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -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; } -- 2.39.5