From a015640863a76a6c27dde305035d6d9806f8ad7d Mon Sep 17 00:00:00 2001 From: mav Date: Wed, 13 Jun 2007 11:01:17 +0000 Subject: [PATCH] Add missing ng_uncallout() on node shutdown. Approved by: glebius (mentor) --- sys/netgraph/ng_car.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netgraph/ng_car.c b/sys/netgraph/ng_car.c index 308a6ba2a268..1873c5a12489 100644 --- a/sys/netgraph/ng_car.c +++ b/sys/netgraph/ng_car.c @@ -497,6 +497,8 @@ ng_car_shutdown(node_p node) { const priv_p priv = NG_NODE_PRIVATE(node); + ng_uncallout(&priv->upper.q_callout, node); + ng_uncallout(&priv->lower.q_callout, node); mtx_destroy(&priv->upper.q_mtx); mtx_destroy(&priv->lower.q_mtx); NG_NODE_UNREF(priv->node);