]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/powerpc/kernel/vdso64/gettimeofday.S
Fix VDSO gettimeofday() when called with NULL struct timeval.
[mirror_ubuntu-bionic-kernel.git] / arch / powerpc / kernel / vdso64 / gettimeofday.S
index 2d7a5104c666f4d470b17e01438763b4bee2fc1e..c6401f9e37f1fd2427cc6fa9373a3bff335949c8 100644 (file)
@@ -31,7 +31,7 @@ V_FUNCTION_BEGIN(__kernel_gettimeofday)
        mr      r11,r3                  /* r11 holds tv */
        mr      r10,r4                  /* r10 holds tz */
        bl      V_LOCAL_FUNC(__get_datapage)    /* get data page */
-       cmpldi  r10,0                   /* check if tv is NULL */
+       cmpldi  r11,0                   /* check if tv is NULL */
        beq     2f
        bl      V_LOCAL_FUNC(__do_get_xsec)     /* get xsec from tb & kernel */
        lis     r7,15                   /* r7 = 1000000 = USEC_PER_SEC */