Skip to content

Commit b059454

Browse files
committed
signal/arm: Use send_sig_fault where appropriate
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
1 parent 3ee6a44 commit b059454

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

‎arch/arm/vfp/vfpmodule.c‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,21 +216,16 @@ static struct notifier_block vfp_notifier_block = {
216216
*/
217217
static void vfp_raise_sigfpe(unsigned int sicode, struct pt_regs *regs)
218218
{
219-
siginfo_t info;
220-
221-
clear_siginfo(&info);
222-
info.si_signo = SIGFPE;
223-
info.si_code = sicode;
224-
info.si_addr = (void __user *)(instruction_pointer(regs) - 4);
225-
226219
/*
227220
* This is the same as NWFPE, because it's not clear what
228221
* this is used for
229222
*/
230223
current->thread.error_code = 0;
231224
current->thread.trap_no = 6;
232225

233-
send_sig_info(SIGFPE, &info, current);
226+
send_sig_fault(SIGFPE, sicode,
227+
(void __user *)(instruction_pointer(regs) - 4),
228+
current);
234229
}
235230

236231
static void vfp_panic(char *reason, u32 inst)

0 commit comments

Comments
 (0)