diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2018-04-20 01:13:51 +0200 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2018-09-27 22:11:28 +0200 |
commit | ccebcb1f5f3a85d0d23a23dfa611b28ae1e0f824 (patch) | |
tree | 4edc3cc071f33fed0fa9403d5d87cc4b3c836c47 /arch/unicore32/include | |
parent | signal/unicore32: Use send_sig_fault where appropriate (diff) | |
download | linux-ccebcb1f5f3a85d0d23a23dfa611b28ae1e0f824.tar.xz linux-ccebcb1f5f3a85d0d23a23dfa611b28ae1e0f824.zip |
signal/unicore32: Generate siginfo in ucs32_notify_die
Pass the signal number, and the signal code, and the faulting
address into uc32_notify_die so the callers do not need
to generate a struct siginfo.
In ucs32_ntoify_die use the newly passed in information to
call force_sig_fault to generate the siginfo and send the error.
This simplifies the code making the chances of bugs much less likely.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'arch/unicore32/include')
-rw-r--r-- | arch/unicore32/include/asm/bug.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/unicore32/include/asm/bug.h b/arch/unicore32/include/asm/bug.h index 93a56f3e2344..83c7687a0e61 100644 --- a/arch/unicore32/include/asm/bug.h +++ b/arch/unicore32/include/asm/bug.h @@ -17,6 +17,7 @@ struct siginfo; extern void die(const char *msg, struct pt_regs *regs, int err); extern void uc32_notify_die(const char *str, struct pt_regs *regs, - struct siginfo *info, unsigned long err, unsigned long trap); + int sig, int code, void __user *addr, + unsigned long err, unsigned long trap); #endif /* __UNICORE_BUG_H__ */ |