Commit 610208bc authored by Richard Kuo's avatar Richard Kuo

Hexagon: fix signal number for user mem faults

Signed-off-by: default avatarRichard Kuo <rkuo@codeaurora.org>
parent 41929798
......@@ -147,7 +147,7 @@ void do_page_fault(unsigned long address, long cause, struct pt_regs *regs)
}
info.si_errno = 0;
info.si_addr = (void __user *)address;
force_sig_info(info.si_code, &info, current);
force_sig_info(info.si_signo, &info, current);
return;
bad_area:
......@@ -158,7 +158,7 @@ void do_page_fault(unsigned long address, long cause, struct pt_regs *regs)
info.si_errno = 0;
info.si_code = si_code;
info.si_addr = (void *)address;
force_sig_info(SIGSEGV, &info, current);
force_sig_info(info.si_signo, &info, current);
return;
}
/* Kernel-mode fault falls through */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment