diff options
author | Guenter Roeck <linux@roeck-us.net> | 2018-05-15 06:50:47 -0700 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2018-05-16 19:21:41 -0500 |
commit | 0bb0a1149e6fb6d8cfdcbcb2dc54d9a7b37db718 (patch) | |
tree | ea2d6144aea670a579300f70a5925396eab1c560 /arch/mips | |
parent | 530621b79f9e884db5ae4fa44cab020da76b0d0c (diff) | |
download | linux-0bb0a1149e6fb6d8cfdcbcb2dc54d9a7b37db718.tar.bz2 |
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).
Fixes: f43a54a0d916 ("signal/mips: Use force_sig_fault where appropriate")
Cc: linux-mips@linux-mips.org
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/kernel/traps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 66ec4b0b484d..d67fa74622ee 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -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; |