Commit b0594548 authored by Eric W. Biederman's avatar Eric W. Biederman

signal/arm: Use send_sig_fault where appropriate

Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 3ee6a449
...@@ -216,13 +216,6 @@ static struct notifier_block vfp_notifier_block = { ...@@ -216,13 +216,6 @@ static struct notifier_block vfp_notifier_block = {
*/ */
static void vfp_raise_sigfpe(unsigned int sicode, struct pt_regs *regs) static void vfp_raise_sigfpe(unsigned int sicode, struct pt_regs *regs)
{ {
siginfo_t info;
clear_siginfo(&info);
info.si_signo = SIGFPE;
info.si_code = sicode;
info.si_addr = (void __user *)(instruction_pointer(regs) - 4);
/* /*
* This is the same as NWFPE, because it's not clear what * This is the same as NWFPE, because it's not clear what
* this is used for * this is used for
...@@ -230,7 +223,9 @@ static void vfp_raise_sigfpe(unsigned int sicode, struct pt_regs *regs) ...@@ -230,7 +223,9 @@ static void vfp_raise_sigfpe(unsigned int sicode, struct pt_regs *regs)
current->thread.error_code = 0; current->thread.error_code = 0;
current->thread.trap_no = 6; current->thread.trap_no = 6;
send_sig_info(SIGFPE, &info, current); send_sig_fault(SIGFPE, sicode,
(void __user *)(instruction_pointer(regs) - 4),
current);
} }
static void vfp_panic(char *reason, u32 inst) static void vfp_panic(char *reason, u32 inst)
......
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