From: Richard Kuo Date: Mon, 8 Apr 2013 22:48:33 +0000 (-0500) Subject: Hexagon: fix signal number for user mem faults X-Git-Tag: firefly_0821_release~3680^2~528^2~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=610208bc8dec79e0ff4930a330187597d89ab861;p=firefly-linux-kernel-4.4.55.git Hexagon: fix signal number for user mem faults Signed-off-by: Richard Kuo --- diff --git a/arch/hexagon/mm/vm_fault.c b/arch/hexagon/mm/vm_fault.c index 308ef0ce648b..1bd276dbec7d 100644 --- a/arch/hexagon/mm/vm_fault.c +++ b/arch/hexagon/mm/vm_fault.c @@ -147,7 +147,7 @@ good_area: } 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 @@ bad_area: 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 */