svn commit: r231096 - stable/9/sys/netinet
Navdeep Parhar
np at FreeBSD.org
Mon Feb 6 18:46:50 UTC 2012
Author: np
Date: Mon Feb 6 18:46:49 2012
New Revision: 231096
URL: http://svn.freebsd.org/changeset/base/231096
Log:
MFC r229714
Always release the inp lock before returning from tcp_detach.
Modified:
stable/9/sys/netinet/tcp_usrreq.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/netinet/tcp_usrreq.c
==============================================================================
--- stable/9/sys/netinet/tcp_usrreq.c Mon Feb 6 18:15:46 2012 (r231095)
+++ stable/9/sys/netinet/tcp_usrreq.c Mon Feb 6 18:46:49 2012 (r231096)
@@ -204,8 +204,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-stable-9
mailing list