Skip to content

Commit

Permalink
signal/unicore32: Use send_sig_fault where appropriate
Browse files Browse the repository at this point in the history
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
  • Loading branch information
Eric W. Biederman committed Sep 27, 2018
1 parent 15773ae commit 5ee527d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions arch/unicore32/kernel/fpu-ucf64.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,16 @@
*/
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
*/
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);
}

/*
Expand Down

0 comments on commit 5ee527d

Please sign in to comment.