| Kernel v2.4.19 /kernel/time.c |
|---|
 2.4.19
 kernel
 time.c
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 )
|