Add missing ng_uncallout() on node shutdown.

Approved by:	glebius (mentor)
This commit is contained in:
Alexander Motin 2007-06-13 11:01:17 +00:00
parent ef481c345f
commit df01e68922
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170661

View File

@ -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);