Commit 733e313e authored by Dan Carpenter's avatar Dan Carpenter Committed by Kleber Sacilotto de Souza

MIPS: RM7000: Double locking bug in rm7k_tc_disable()

BugLink: https://bugs.launchpad.net/bugs/1878232

commit 58a7e1c1 upstream.

We obviously intended to enable IRQs again at the end.

Fixes: 745aef5d ('MIPS: RM7000: Add support for tertiary cache')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/13815/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarIan May <ian.may@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 42727b24
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment