]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/timekeeping.h
Merge branch 'acpica-fixes'
[mirror_ubuntu-artful-kernel.git] / include / linux / timekeeping.h
index 37dbacf84849add3a31b410ee06d26ec08c56a07..816b7543f81bca3a31fb005b69c32daab72383c7 100644 (file)
@@ -21,6 +21,9 @@ static inline int do_sys_settimeofday(const struct timespec *tv,
        struct timespec64 ts64;
 
        if (!tv)
+               return do_sys_settimeofday64(NULL, tz);
+
+       if (!timespec_valid(tv))
                return -EINVAL;
 
        ts64 = timespec_to_timespec64(*tv);