From: Eric W. Biederman Date: Mon, 24 Jul 2017 22:30:30 +0000 (-0500) Subject: signal/sh: Ensure si_signo is initialized in do_divide_error X-Git-Tag: Ubuntu-4.15.0-11.12~217 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=16e65dfca5e7a185df8331ffb736fed662131ba2;p=mirror_ubuntu-bionic-kernel.git signal/sh: Ensure si_signo is initialized in do_divide_error BugLink: http://bugs.launchpad.net/bugs/1751064 commit 0e88bb002a9b2ee8cc3cc9478ce2dc126f849696 upstream. Set si_signo. Cc: Yoshinori Sato Cc: Rich Felker Cc: Paul Mundt Cc: linux-sh@vger.kernel.org Fixes: 0983b31849bb ("sh: Wire up division and address error exceptions on SH-2A.") Signed-off-by: "Eric W. Biederman" Signed-off-by: Greg Kroah-Hartman Signed-off-by: Seth Forshee --- diff --git a/arch/sh/kernel/traps_32.c b/arch/sh/kernel/traps_32.c index 57cff00cad17..b3770bb26211 100644 --- a/arch/sh/kernel/traps_32.c +++ b/arch/sh/kernel/traps_32.c @@ -609,7 +609,8 @@ asmlinkage void do_divide_error(unsigned long r4) break; } - force_sig_info(SIGFPE, &info, current); + info.si_signo = SIGFPE; + force_sig_info(info.si_signo, &info, current); } #endif