]> git.baikalelectronics.ru Git - kernel.git/commit
ntp/y2038: Remove incorrect time_t truncation
authorArnd Bergmann <arnd@arndb.de>
Fri, 8 Nov 2019 20:34:24 +0000 (21:34 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 12 Nov 2019 07:13:44 +0000 (08:13 +0100)
commit10ec23a1d3a6f79811ef301a4b30739ad4c6d277
tree88d71465c8a13f89770d9fb084767e9af1fc8e08
parente95120855f17a0e33db749c2d26010f7df67b007
ntp/y2038: Remove incorrect time_t truncation

A cast to 'time_t' was accidentally left in place during the
conversion of __do_adjtimex() to 64-bit timestamps, so the
resulting value is incorrectly truncated.

Remove the cast so the 64-bit time gets propagated correctly.

Fixes: 3a7ce8aa7333 ("timex: use __kernel_timex internally")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20191108203435.112759-2-arnd@arndb.de
kernel/time/ntp.c