In uipc_close(), we no longer always free the unpcb, as the last reference

may be dropped later.  In this case, always unlock the unpcb so as not to
leak the lock.

Found by:	kris (BugMagnet)
This commit is contained in:
rwatson 2007-03-12 14:52:00 +00:00
parent 117cebb873
commit 5ce4db6432

View File

@ -593,7 +593,8 @@ uipc_detach(struct socket *so)
if (freeunp) {
UNP_PCB_LOCK_DESTROY(unp);
uma_zfree(unp_zone, unp);
}
} else
UNP_PCB_UNLOCK(unp);
if (vp) {
int vfslocked;