Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.19 /kernel/time.c

Filename:/kernel/time.c
Lines Added:5
Lines Deleted:0
Also changed in: (Previous) 2.4.19-rc5  2.4.19-rc4  2.4.19-rc3  2.4.19-rc2  2.4.19-rc1  2.4.19-pre10 
(Following) 2.4.20-pre1  2.4.20-pre2  2.4.20-pre3  2.4.20-pre4  2.4.20-pre5  2.4.20-pre6 

Location
[  2.4.19
  [  kernel
     o  time.c

Patch

diff -urN linux-2.4.18/kernel/time.c linux-2.4.19/kernel/time.c
--- linux-2.4.18/kernel/time.c   Mon Feb 25 11:38:13 2002
+++ linux-2.4.19/kernel/time.c   Fri Aug  2 17:39:46 2002
@@ -216,6 +216,11 @@
       
    /* Now we validate the data before disabling interrupts */
 
+   if ((txc->modes & ADJ_OFFSET_SINGLESHOT) == ADJ_OFFSET_SINGLESHOT)
+     /* singleshot must not be used with any other mode bits */
+      if (txc->modes != ADJ_OFFSET_SINGLESHOT)
+         return -EINVAL;
+
    if (txc->modes != ADJ_OFFSET_SINGLESHOT && (txc->modes & ADJ_OFFSET))
      /* adjustment Offset limited to +- .512 seconds */
       if (txc->offset <= - MAXPHASE || txc->offset >= MAXPHASE )


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.