Always release the inp lock before returning from tcp_detach.

MFC after:	5 days
This commit is contained in:
np 2012-01-06 18:29:40 +00:00
parent 6bdfc28231
commit 8b68a40419

View File

@ -204,8 +204,10 @@ tcp_detach(struct socket *so, struct inpcb *inp)
tcp_discardcb(tp);
in_pcbdetach(inp);
in_pcbfree(inp);
} else
} else {
in_pcbdetach(inp);
INP_WUNLOCK(inp);
}
}
}