Author: ian Date: Fri Feb 13 18:10:06 2015 New Revision: 278686 URL: https://svnweb.freebsd.org/changeset/base/278686
Log: MFC r277025: Fix an off-by-one in ppsratecheck(). Modified: stable/10/sys/kern/kern_time.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/kern/kern_time.c ============================================================================== --- stable/10/sys/kern/kern_time.c Fri Feb 13 18:03:50 2015 (r278685) +++ stable/10/sys/kern/kern_time.c Fri Feb 13 18:10:06 2015 (r278686) @@ -982,7 +982,7 @@ ppsratecheck(struct timeval *lasttime, i return (maxpps != 0); } else { (*curpps)++; /* NB: ignore potential overflow */ - return (maxpps < 0 || *curpps < maxpps); + return (maxpps < 0 || *curpps <= maxpps); } } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"