⬢ DragonFlyBSD Kernel Audit
DF-2930 / fix.diff
← back to finding ↓ download raw
--- a/sys/kern/kern_systimer.c	2026-06-29 12:51:19.000000000 +0000
+++ b/sys/kern/kern_systimer.c	2026-10-26 00:25:42.789042927 +0000
@@ -267,7 +267,7 @@
 
     if ((flags & SYSTF_100KHZSYNC) && freq <= 100000)
 	    info->periodic = sys_cputimer->fromhz(100000) * (100000 / freq);
-    if ((flags & SYSTF_MSSYNC) && freq <= 1000)
+    else if ((flags & SYSTF_MSSYNC) && freq <= 1000)
 	    info->periodic = sys_cputimer->fromhz(1000) * (1000 / freq);
     else
 	    info->periodic = sys_cputimer->fromhz(freq);