From 8b68a4041988c9f0fe34ad0aa5fd4306a3b2590c Mon Sep 17 00:00:00 2001 From: np Date: Fri, 6 Jan 2012 18:29:40 +0000 Subject: Always release the inp lock before returning from tcp_detach. MFC after: 5 days --- sys/netinet/tcp_usrreq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/netinet') diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 7a7e1ce..5e2af8f 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -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); + } } } -- cgit v1.1