Skip to contentSkip to conversation

MIPS: RM7000: Double locking bug in rm7k_tc_disable()

PATCH New Dan Carpenter 1 participant 1 message Jul 15, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: RM7000: Double locking bug in rm7k_tc_disable()

We obviously intended to enable IRQs again at the end.

Fixes 745aef5df1e2 ('MIPS: RM7000: Add support for tertiary cache')
arch/mips/mm/sc-rm7k.c +1 -1
index 9ac1efc..78f900c 100644
@@ -161,7 +161,7 @@ static void rm7k_tc_disable(void)
 	local_irq_save(flags);
 	blast_rm7k_tcache();
 	clear_c0_config(RM7K_CONF_TE);
-	local_irq_save(flags);
+	local_irq_restore(flags);
 }
 
 static void rm7k_sc_disable(void)