From ecf0965eb281fbd44567a837c4d9c2dd1a5d5727 Mon Sep 17 00:00:00 2001 From: sbruno Date: Tue, 15 May 2018 13:19:00 +0000 Subject: [PATCH] MFC r303848 Repair trivial panic in ng_uncallout. Fixes bugzilla #211031 PR: 211031 git-svn-id: svn://svn.freebsd.org/base/stable/10@333629 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/netgraph/ng_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index 833e2b957..9eea42b3e 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -3813,7 +3813,7 @@ ng_uncallout(struct callout *c, node_p node) item = c->c_arg; /* Do an extra check */ if ((rval > 0) && (c->c_func == &ng_callout_trampoline) && - (NGI_NODE(item) == node)) { + (item != NULL) && (NGI_NODE(item) == node)) { /* * We successfully removed it from the queue before it ran * So now we need to unreference everything that was -- 2.45.0