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

Commit 57725f9e authored by Chris Dearman's avatar Chris Dearman Committed by Ralf Baechle
Browse files

[MIPS] Panic on fp exception in kernel mode.



There should never be a FP exception in kernel mode.

Signed-off-by: default avatarChris Dearman <chris@mips.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent e1a4e469
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -569,6 +569,8 @@ asmlinkage void do_ov(struct pt_regs *regs)
 */
asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31)
{
	die_if_kernel("FP exception in kernel code", regs);

	if (fcr31 & FPU_CSR_UNI_X) {
		int sig;