diff options
-rw-r--r-- | include/linux/timekeeping.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index 37dbacf84849..816b7543f81b 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h | |||
@@ -21,6 +21,9 @@ static inline int do_sys_settimeofday(const struct timespec *tv, | |||
21 | struct timespec64 ts64; | 21 | struct timespec64 ts64; |
22 | 22 | ||
23 | if (!tv) | 23 | if (!tv) |
24 | return do_sys_settimeofday64(NULL, tz); | ||
25 | |||
26 | if (!timespec_valid(tv)) | ||
24 | return -EINVAL; | 27 | return -EINVAL; |
25 | 28 | ||
26 | ts64 = timespec_to_timespec64(*tv); | 29 | ts64 = timespec_to_timespec64(*tv); |