signal/mips: Report FPE_FLTUNK for undiagnosed floating point exceptions
PATCH 1/1 signal/mips: Report FPE_FLTUNK for undiagnosed floating point exceptions
Most mips builds fail with
arch/mips/kernel/traps.c: In function ‘force_fcr31_sig’:arch/mips/kernel/traps.c:732:2: error:
‘si_code’ may be used uninitialized in this function
Fix the problem by initializing si_code with FPE_FLTUNK (undiagnosed floating point exception).
---
Feel free to merge into the patch introducing the problem.
arch/mips/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/kernel/traps.c +1 -1
@@ -716,7 +716,7 @@ asmlinkage void do_ov(struct pt_regs *regs)void force_fcr31_sig (unsigned long fcr31,void __user *fault_addr,struct task_struct *tsk) { -int si_code; +int si_code =FPE_FLTUNK ;if (fcr31 &FPU_CSR_INV_X ) si_code =FPE_FLTINV ;
Signature · 1 line
2.7.4
Eric W. Biederman
AppliedQuoted 6 lines · Guenter Roeck
Most mips builds fail with
arch/mips/kernel/traps.c: In function ‘force_fcr31_sig’:arch/mips/kernel/traps.c:732:2: error:
‘si_code’ may be used uninitialized in this function
Quoted 7 lines
Fix the problem by initializing
si_codewithFPE_FLTUNK(undiagnosed floating point exception).Fixes f43a54a0d916 ("signal/mips: Use force_sig_fault where appropriate")Cc Eric W. Biederman <[email protected]>Signed-off-by Guenter Roeck <[email protected]>
Applied. Thank you.
Eric
Quoted 19 lines
---
Feel free to merge into the patch introducing the problem.arch/mips/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/mips/kernel/traps.c +1
-1@@ -716,7 +716,7 @@ asmlinkage void do_ov(struct pt_regs *regs)void force_fcr31_sig (unsigned long fcr31,void __user *fault_addr,struct task_struct *tsk) { -int si_code; +int si_code =FPE_FLTUNK ;if (fcr31 &FPU_CSR_INV_X ) si_code =FPE_FLTINV ;