signal/mips: Report FPE_FLTUNK for undiagnosed floating point exceptions
authorGuenter Roeck <linux@roeck-us.net>
Tue, 15 May 2018 13:50:47 +0000 (06:50 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 17 May 2018 00:21:41 +0000 (19:21 -0500)
commit0bb0a1149e6fb6d8cfdcbcb2dc54d9a7b37db718
treeea2d6144aea670a579300f70a5925396eab1c560
parent530621b79f9e884db5ae4fa44cab020da76b0d0c
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>
arch/mips/kernel/traps.c