Reverse a lock/unlock pair that were the wrong way around in some code that

is obviously not run a lot. (but is in some test cases).
This code is not usually run because it covers a case that doesn't
happen a lot (removing a node that has data traversing it).
This commit is contained in:
Julian Elischer 2004-07-18 22:57:46 +00:00
parent 08f85b089e
commit 505fad52f7

View File

@ -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.