PERFORCE change 47775 for review
Robert Watson
rwatson at FreeBSD.org
Fri Feb 27 16:59:56 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=47775
Change 47775 by rwatson at rwatson_tislabs on 2004/02/27 16:59:15
Assert the socket lock directly in sofree() rather than relying
on later unlock attempts to fail.
Affected files ...
.. //depot/projects/netperf_socket/sys/kern/uipc_socket.c#3 edit
Differences ...
==== //depot/projects/netperf_socket/sys/kern/uipc_socket.c#3 (text+ko) ====
@@ -291,6 +291,7 @@
struct socket *so;
{
KASSERT(so->so_count == 0, ("socket %p so_count not 0", so));
+ SOCK_LOCK_ASSERT(so);
if (so->so_pcb || (so->so_state & SS_NOFDREF) == 0) {
SOCK_UNLOCK(so);
More information about the p4-projects
mailing list