DragonFlyBSD Kernel Audit
DF-0048 / fix.diff
← back to finding ↓ download raw
diff --git a/kern/kern_timeout.c b/kern/kern_timeout.c
--- a/kern/kern_timeout.c
+++ b/kern/kern_timeout.c
@@ -597,7 +597,7 @@
 				 */
 				if (c->flags &
 				    (CALLOUT_CANCEL | CALLOUT_STOP)) {
-					atomic_set_int(&c->verifier->flags,
+					atomic_set_int(&c->flags,
 						       CALLOUT_PREVENTED);
 				}
 			} else if (c->flags & CALLOUT_RESET) {
@@ -620,7 +620,7 @@
 					lockmgr(c->lk, LK_RELEASE);
 				} else if (c->flags &
 					   (CALLOUT_CANCEL | CALLOUT_STOP)) {
-					atomic_set_int(&c->verifier->flags,
+					atomic_set_int(&c->flags,
 						       CALLOUT_PREVENTED);
 				}
 			} else {