mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-17 03:58:36 +00:00
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
This commit is contained in:
commit
2c22132563
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,9 @@ static inline int do_sys_settimeofday(const struct timespec *tv,
|
||||||
struct timespec64 ts64;
|
struct timespec64 ts64;
|
||||||
|
|
||||||
if (!tv)
|
if (!tv)
|
||||||
|
return do_sys_settimeofday64(NULL, tz);
|
||||||
|
|
||||||
|
if (!timespec_valid(tv))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
ts64 = timespec_to_timespec64(*tv);
|
ts64 = timespec_to_timespec64(*tv);
|
||||||
|
|
Loading…
Add table
Reference in a new issue