summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/netgraph/ng_base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index cd0e336..bf69181 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -2075,9 +2075,9 @@ ng_flush_input_queue(struct ng_queue * ngq)
}
atomic_add_long(&ngq->q_flags, add_arg);
- mtx_lock_spin(&ngq->q_mtx);
- NG_FREE_ITEM(item);
mtx_unlock_spin(&ngq->q_mtx);
+ NG_FREE_ITEM(item);
+ mtx_lock_spin(&ngq->q_mtx);
}
/*
* Take us off the work queue if we are there.
OpenPOWER on IntegriCloud