Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern PR/23613: Christian Biere: Bogus bounds check in na...



details:   https://anonhg.NetBSD.org/src/rev/64bdc087d5fb
branches:  trunk
changeset: 555854:64bdc087d5fb
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 02 01:34:30 2003 +0000

description:
PR/23613: Christian Biere: Bogus bounds check in nanosleep.

diffstat:

 sys/kern/kern_time.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2633fe699fe1 -r 64bdc087d5fb sys/kern/kern_time.c
--- a/sys/kern/kern_time.c      Mon Dec 01 18:57:07 2003 +0000
+++ b/sys/kern/kern_time.c      Tue Dec 02 01:34:30 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_time.c,v 1.79 2003/11/13 03:09:30 chs Exp $       */
+/*     $NetBSD: kern_time.c,v 1.80 2003/12/02 01:34:30 christos Exp $  */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.79 2003/11/13 03:09:30 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.80 2003/12/02 01:34:30 christos Exp $");
 
 #include "fs_nfs.h"
 #include "opt_nfs.h"
@@ -281,7 +281,7 @@
                return (error);
 
        TIMESPEC_TO_TIMEVAL(&atv,&rqt)
-       if (itimerfix(&atv) || atv.tv_sec > 1000000000)
+       if (itimerfix(&atv))
                return (EINVAL);
 
        s = splclock();



Home | Main Index | Thread Index | Old Index