Fix mutex errors.

Obtained from:	NetBSD r1.4.
MFC after:	1 week
This commit is contained in:
Cy Schubert 2015-09-11 08:35:53 +00:00
parent d7b78c26dc
commit 7671e3b5b6

View File

@ -3656,7 +3656,6 @@ ipf_state_del(softc, is, why)
softs->ipf_state_stats.iss_orphan++;
return refs;
}
MUTEX_EXIT(&is->is_lock);
fr = is->is_rule;
is->is_rule = NULL;
@ -3668,6 +3667,7 @@ ipf_state_del(softc, is, why)
}
is->is_ref = 0;
MUTEX_EXIT(&is->is_lock);
if (is->is_tqehead[0] != NULL) {
if (ipf_deletetimeoutqueue(is->is_tqehead[0]) == 0)