diff options
| author | Julian Elischer <julian@FreeBSD.org> | 2004-07-18 22:57:46 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 2004-07-18 22:57:46 +0000 |
| commit | 505fad52f7179e06294f0f421c8162b95a9f23e7 (patch) | |
| tree | a41c77326dcf01e4acef5ff284e23523a793c1f7 | |
| parent | 08f85b089e659c5a157dae25cda39ec3b98bcb8b (diff) | |
Notes
| -rw-r--r-- | sys/netgraph/ng_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index cd0e336ba6fdd..bf6918168f30c 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. |
