Hexagon: fix signal number for user mem faults
authorRichard Kuo <rkuo@codeaurora.org>
Mon, 8 Apr 2013 22:48:33 +0000 (17:48 -0500)
committerRichard Kuo <rkuo@codeaurora.org>
Wed, 1 May 2013 00:40:27 +0000 (19:40 -0500)
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
arch/hexagon/mm/vm_fault.c

index 308ef0ce648baeb77ed933a6c30de55a94d96438..1bd276dbec7d3503f92a19fc7cb5a39df1051621 100644 (file)
@@ -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 */