Commit 21f94109 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Greg Kroah-Hartman

signal/sh: Ensure si_signo is initialized in do_divide_error

commit 0e88bb00 upstream.

Set si_signo.

Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: linux-sh@vger.kernel.org
Fixes: 0983b318 ("sh: Wire up division and address error exceptions on SH-2A.")
Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 498b8b74
...@@ -607,7 +607,8 @@ asmlinkage void do_divide_error(unsigned long r4) ...@@ -607,7 +607,8 @@ asmlinkage void do_divide_error(unsigned long r4)
break; break;
} }
force_sig_info(SIGFPE, &info, current); info.si_signo = SIGFPE;
force_sig_info(info.si_signo, &info, current);
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment