diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2018-06-18 22:50:26 +0300 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2018-09-27 22:57:39 +0300 |
commit | 3ee6a4498724a464ba9882007c4aef8ec01eba10 (patch) | |
tree | dab666752d8533303dad58073e97baaa0a91e052 /arch/arm/mm/alignment.c | |
parent | 05e792e30ed039b5d202d31b86ba0d0491cd6f3c (diff) | |
download | linux-3ee6a4498724a464ba9882007c4aef8ec01eba10.tar.xz |
signal/arm: Use force_sig_fault where appropriate
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'arch/arm/mm/alignment.c')
-rw-r--r-- | arch/arm/mm/alignment.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c index bd2c739d8083..b54f8f8def36 100644 --- a/arch/arm/mm/alignment.c +++ b/arch/arm/mm/alignment.c @@ -948,15 +948,7 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs) goto fixup; if (ai_usermode & UM_SIGNAL) { - siginfo_t si; - - clear_siginfo(&si); - si.si_signo = SIGBUS; - si.si_errno = 0; - si.si_code = BUS_ADRALN; - si.si_addr = (void __user *)addr; - - force_sig_info(si.si_signo, &si, current); + force_sig_fault(SIGBUS, BUS_ADRALN, (void __user *)addr, current); } else { /* * We're about to disable the alignment trap and return to |