summaryrefslogtreecommitdiffstats
path: root/arch/unicore32
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2018-04-19 17:29:04 -0500
committerEric W. Biederman <ebiederm@xmission.com>2018-09-27 21:59:44 +0200
commit5ee527d7cefddebd72970d290e5cc06c9ae32890 (patch)
tree06d2faeaad3ac12aafc7267c2033b074a2e30fa7 /arch/unicore32
parent15773ae938d8d93d982461990bebad6e1d7a1830 (diff)
downloadlinux-stable-5ee527d7cefddebd72970d290e5cc06c9ae32890.tar.gz
linux-stable-5ee527d7cefddebd72970d290e5cc06c9ae32890.tar.bz2
linux-stable-5ee527d7cefddebd72970d290e5cc06c9ae32890.zip
signal/unicore32: Use send_sig_fault where appropriate
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'arch/unicore32')
-rw-r--r--arch/unicore32/kernel/fpu-ucf64.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/unicore32/kernel/fpu-ucf64.c b/arch/unicore32/kernel/fpu-ucf64.c
index 8594b168f25e..fc5dad32a982 100644
--- a/arch/unicore32/kernel/fpu-ucf64.c
+++ b/arch/unicore32/kernel/fpu-ucf64.c
@@ -54,14 +54,6 @@
*/
void ucf64_raise_sigfpe(struct pt_regs *regs)
{
- siginfo_t info;
-
- clear_siginfo(&info);
-
- info.si_signo = SIGFPE;
- info.si_code = FPE_FLTUNK;
- 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
@@ -69,7 +61,9 @@ void ucf64_raise_sigfpe(struct pt_regs *regs)
current->thread.error_code = 0;
current->thread.trap_no = 6;
- send_sig_info(SIGFPE, &info, current);
+ send_sig_fault(SIGFPE, FPE_FLTUNK,
+ (void __user *)(instruction_pointer(regs) - 4),
+ current);
}
/*