]> 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)
commit61ef1b32220123ebd4d83909b322f35e04558b23
tree88d71465c8a13f89770d9fb084767e9af1fc8e08
parent4ecc71eb0b9570f91bd8c41c6eccfb90b9620aa0
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: d4fa8758971f ("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