提交 610208bc 编写于 作者: R Richard Kuo

Hexagon: fix signal number for user mem faults

Signed-off-by: NRichard Kuo <rkuo@codeaurora.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册