Skip to content

Commit 772fa10

Browse files
committed
ntp: Patch to fix false positives on 32bit systems
See: https://bugzilla.kernel.org/show_bug.cgi?id=92481
1 parent 3bdec0b commit 772fa10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/time/ntp.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,9 @@ int ntp_validate_timex(struct timex *txc)
634634
return -EPERM;
635635

636636
if (txc->modes & ADJ_FREQUENCY) {
637-
if (LONG_MIN / PPM_SCALE > txc->freq)
637+
if (LLONG_MIN / PPM_SCALE > txc->freq)
638638
return -EINVAL;
639-
if (LONG_MAX / PPM_SCALE < txc->freq)
639+
if (LLONG_MAX / PPM_SCALE < txc->freq)
640640
return -EINVAL;
641641
}
642642

0 commit comments

Comments
 (0)