Skip to content

Commit 3278b3b

Browse files
committed
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer fix from Ingo Molnar: "Fix integer truncation bug in __do_adjtimex()" * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: ntp/y2038: Remove incorrect time_t truncation
2 parents 5ffaf03 + 2f58413 commit 3278b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/time/ntp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ int __do_adjtimex(struct __kernel_timex *txc, const struct timespec64 *ts,
771771
/* fill PPS status fields */
772772
pps_fill_timex(txc);
773773

774-
txc->time.tv_sec = (time_t)ts->tv_sec;
774+
txc->time.tv_sec = ts->tv_sec;
775775
txc->time.tv_usec = ts->tv_nsec;
776776
if (!(time_status & STA_NANO))
777777
txc->time.tv_usec = ts->tv_nsec / NSEC_PER_USEC;

0 commit comments

Comments
 (0)