Skip to content

Commit

Permalink
ntp: Patch to fix false positives on 32bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Feb 8, 2015
1 parent 3bdec0b commit 772fa10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/time/ntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,9 @@ int ntp_validate_timex(struct timex *txc)
return -EPERM;

if (txc->modes & ADJ_FREQUENCY) {
if (LONG_MIN / PPM_SCALE > txc->freq)
if (LLONG_MIN / PPM_SCALE > txc->freq)
return -EINVAL;
if (LONG_MAX / PPM_SCALE < txc->freq)
if (LLONG_MAX / PPM_SCALE < txc->freq)
return -EINVAL;
}

Expand Down

0 comments on commit 772fa10

Please sign in to comment.