svn commit: r185509 - head/sys/dev/cxgb/sys

Kip Macy kmacy at FreeBSD.org
Sun Nov 30 21:44:09 PST 2008


Author: kmacy
Date: Mon Dec  1 05:44:08 2008
New Revision: 185509
URL: http://svn.freebsd.org/changeset/base/185509

Log:
  null out m_next when marshalling a packet

Modified:
  head/sys/dev/cxgb/sys/uipc_mvec.c

Modified: head/sys/dev/cxgb/sys/uipc_mvec.c
==============================================================================
--- head/sys/dev/cxgb/sys/uipc_mvec.c	Mon Dec  1 05:43:30 2008	(r185508)
+++ head/sys/dev/cxgb/sys/uipc_mvec.c	Mon Dec  1 05:44:08 2008	(r185509)
@@ -293,7 +293,9 @@ retry:
 		/*
 		 * is an immediate mbuf or is from the packet zone
 		 */
-		n = n->m_next;
+		mhead = n->m_next;
+		n->m_next = NULL;
+		n = mhead;
 	}
 	*nsegs = seg_count;
 	*m = m0;


More information about the svn-src-all mailing list