svn commit: r231097 - stable/8/sys/netinet

Navdeep Parhar np at FreeBSD.org
Mon Feb 6 18:47:08 UTC 2012


Author: np
Date: Mon Feb  6 18:47:07 2012
New Revision: 231097
URL: http://svn.freebsd.org/changeset/base/231097

Log:
  MFC r229714
  
  Always release the inp lock before returning from tcp_detach.

Modified:
  stable/8/sys/netinet/tcp_usrreq.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/netinet/tcp_usrreq.c
==============================================================================
--- stable/8/sys/netinet/tcp_usrreq.c	Mon Feb  6 18:46:49 2012	(r231096)
+++ stable/8/sys/netinet/tcp_usrreq.c	Mon Feb  6 18:47:07 2012	(r231097)
@@ -202,8 +202,10 @@ tcp_detach(struct socket *so, struct inp
 			tcp_discardcb(tp);
 			in_pcbdetach(inp);
 			in_pcbfree(inp);
-		} else
+		} else {
 			in_pcbdetach(inp);
+			INP_WUNLOCK(inp);
+		}
 	}
 }
 


More information about the svn-src-all mailing list