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)
commit2f5841349df281ecf8f81cc82d869b8476f0db0b
tree88d71465c8a13f89770d9fb084767e9af1fc8e08
parent31f4f5b495a62c9a8b15b1c3581acd5efeb9af8c
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: ead25417f82e ("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