DragonFlyBSD Kernel Audit
DF-0557 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/netgraph/lmi/ng_lmi.c b/sys/netgraph/lmi/ng_lmi.c
--- a/sys/netgraph/lmi/ng_lmi.c
+++ b/sys/netgraph/lmi/ng_lmi.c
@@ -1088,7 +1088,7 @@
 
 	/* Stop timer if it's currently active */
 	if (sc->flags & SCF_CONNECTED)
-		callout_stop(&sc->timeout);
+		ng_uncallout(&sc->timeout, sc->node);
 
 	/* Self-destruct */
 	ng_rmnode(hook->node);