svn commit: r192757 - head/sys/netipx
Robert Watson
rwatson at FreeBSD.org
Mon May 25 13:34:04 UTC 2009
Author: rwatson
Date: Mon May 25 13:34:03 2009
New Revision: 192757
URL: http://svn.freebsd.org/changeset/base/192757
Log:
Add missing call to ipx_pcbdetach() during SPX socket tear-down: not
harmful in practice if running without INVARIANTS, but will panic
with KASSERT enabled when SPX sockets are closed.
MFC after: 3 days
Modified:
head/sys/netipx/spx_usrreq.c
Modified: head/sys/netipx/spx_usrreq.c
==============================================================================
--- head/sys/netipx/spx_usrreq.c Mon May 25 13:32:54 2009 (r192756)
+++ head/sys/netipx/spx_usrreq.c Mon May 25 13:34:03 2009 (r192757)
@@ -1253,6 +1253,7 @@ spx_detach(struct socket *so)
IPX_LIST_LOCK();
IPX_LOCK(ipxp);
spx_pcbdetach(ipxp);
+ ipx_pcbdetach(ipxp);
ipx_pcbfree(ipxp);
IPX_LIST_UNLOCK();
}
More information about the svn-src-all
mailing list