aboutsummaryrefslogtreecommitdiffstats
path: root/arch/unicore32/mm/fault.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2018-04-19 18:22:47 -0500
committerEric W. Biederman <ebiederm@xmission.com>2018-09-27 22:11:30 +0200
commitf040d23c81860e59deef2089669f8ef330541f69 (patch)
treec05a2d065f1c1ecddf6590416f5c6db252ac1764 /arch/unicore32/mm/fault.c
parentsignal/unicore32: Generate siginfo in ucs32_notify_die (diff)
downloadlinux-dev-f040d23c81860e59deef2089669f8ef330541f69.tar.xz
linux-dev-f040d23c81860e59deef2089669f8ef330541f69.zip
signal/unicore32: Use force_sig_fault where appropriate
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to '')
-rw-r--r--arch/unicore32/mm/fault.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/unicore32/mm/fault.c b/arch/unicore32/mm/fault.c
index a942776110a0..b9a3a50644c1 100644
--- a/arch/unicore32/mm/fault.c
+++ b/arch/unicore32/mm/fault.c
@@ -120,17 +120,10 @@ static void __do_user_fault(struct task_struct *tsk, unsigned long addr,
unsigned int fsr, unsigned int sig, int code,
struct pt_regs *regs)
{
- struct siginfo si;
-
tsk->thread.address = addr;
tsk->thread.error_code = fsr;
tsk->thread.trap_no = 14;
- clear_siginfo(&si);
- si.si_signo = sig;
- si.si_errno = 0;
- si.si_code = code;
- si.si_addr = (void __user *)addr;
- force_sig_info(sig, &si, tsk);
+ force_sig_fault(sig, code, (void __user *)addr, tsk);
}
void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs)