diff options
author | mav <mav@FreeBSD.org> | 2013-03-07 16:50:07 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2013-03-07 16:50:07 +0000 |
commit | 98e8f7838c986bc8765c316eb2b7050594f488cd (patch) | |
tree | f3906031bcf4d44572dd70ae245e60494432498b | |
parent | 138ec63f93366c0d530aa60d1a472877e1c7d95b (diff) | |
download | FreeBSD-src-98e8f7838c986bc8765c316eb2b7050594f488cd.zip FreeBSD-src-98e8f7838c986bc8765c316eb2b7050594f488cd.tar.gz |
Fix off-by-one error in nanoseconds validation.
Submitted by: bde
-rw-r--r-- | sys/kern/kern_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index 3c8826c..c3d1b86 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -1324,7 +1324,7 @@ kqueue_scan(struct kqueue *kq, int maxevents, struct kevent_copyops *k_ops, rsbt = 0; if (tsp != NULL) { if (tsp->tv_sec < 0 || tsp->tv_nsec < 0 || - tsp->tv_nsec > 1000000000) { + tsp->tv_nsec >= 1000000000) { error = EINVAL; goto done_nl; } |