diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c index d943d6773b3f579880ccd234e47dcdadce0a6c61..04bfba174370b33b24fd1e8c10fbcb2537b91faf 100644 --- a/kernel/time/ntp.c +++ b/kernel/time/ntp.c @@ -700,7 +700,7 @@ static inline void process_adjtimex_modes(const struct timex *txc, s32 *time_tai time_constant = max(time_constant, 0l); } - if (txc->modes & ADJ_TAI && txc->constant > 0) + if (txc->modes & ADJ_TAI && txc->constant >= 0) *time_tai = txc->constant; if (txc->modes & ADJ_OFFSET)