Always release the inp lock before returning from tcp_detach.

MFC after:	5 days
This commit is contained in:
Navdeep Parhar 2012-01-06 18:29:40 +00:00
parent 81ec6b6b47
commit db3cee5170
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229714

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);
}
}
}