Merge branch 'upstream/pvhvm' into upstream/xen
[firefly-linux-kernel-4.4.55.git] / arch / x86 / kernel / entry_64.S
index 490ae2bb18a854d568496dd054bd6ec715ce02bf..649ed17f70095ca1b49d5a3a69da03465bfb340e 100644 (file)
@@ -571,8 +571,8 @@ auditsys:
         * masked off.
         */
 sysret_audit:
-       movq %rax,%rsi          /* second arg, syscall return value */
-       cmpq $0,%rax            /* is it < 0? */
+       movq RAX-ARGOFFSET(%rsp),%rsi   /* second arg, syscall return value */
+       cmpq $0,%rsi            /* is it < 0? */
        setl %al                /* 1 if so, 0 if not */
        movzbl %al,%edi         /* zero-extend that into %edi */
        inc %edi /* first arg, 0->1(AUDITSC_SUCCESS), 1->2(AUDITSC_FAILURE) */