signal/arm: Use send_sig_fault where appropriate
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 16 Apr 2018 18:35:45 +0000 (13:35 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 27 Sep 2018 19:57:40 +0000 (21:57 +0200)
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
arch/arm/vfp/vfpmodule.c

index dc7e6b5..aa96cc5 100644 (file)
@@ -216,13 +216,6 @@ static struct notifier_block vfp_notifier_block = {
  */
 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 used for
@@ -230,7 +223,9 @@ static void vfp_raise_sigfpe(unsigned int sicode, struct pt_regs *regs)
        current->thread.error_code = 0;
        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)