summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_extattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r--sys/kern/vfs_extattr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index 946b81c..98ee355 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -2738,8 +2738,8 @@ getutimes(usrtvp, tvpseg, tsp)
tvp = tv;
}
- if (tvp[0].tv_usec < 0 || tvp[0].tv_usec > 999999 ||
- tvp[1].tv_usec < 0 || tvp[1].tv_usec > 999999)
+ if (tvp[0].tv_usec < 0 || tvp[0].tv_usec >= 1000000 ||
+ tvp[1].tv_usec < 0 || tvp[1].tv_usec >= 1000000)
return (EINVAL);
TIMEVAL_TO_TIMESPEC(&tvp[0], &tsp[0]);
TIMEVAL_TO_TIMESPEC(&tvp[1], &tsp[1]);
OpenPOWER on IntegriCloud