Skip to content

Commit 2c22132

Browse files
committed
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer bugfix from Thomas Gleixner: "A single bugfix for the error check wreckage we introduced in the merge window" * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: time: Make settimeofday error checking work again
2 parents e603330 + dfc2507 commit 2c22132

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/linux/timekeeping.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ static inline int do_sys_settimeofday(const struct timespec *tv,
2121
struct timespec64 ts64;
2222

2323
if (!tv)
24+
return do_sys_settimeofday64(NULL, tz);
25+
26+
if (!timespec_valid(tv))
2427
return -EINVAL;
2528

2629
ts64 = timespec_to_timespec64(*tv);

0 commit comments

Comments
 (0)