summaryrefslogtreecommitdiffstats
path: root/sys/dev/cxgb
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-12-01 05:44:08 +0000
committerkmacy <kmacy@FreeBSD.org>2008-12-01 05:44:08 +0000
commit6ec258b966b9dd65e89f3c1639f662cc6f64766b (patch)
tree69c1cda001a3fdf7266ae944eac91870a5c8851f /sys/dev/cxgb
parentc533f1a09afd07a3a4a94ca7f58bcd067c82c7d9 (diff)
downloadFreeBSD-src-6ec258b966b9dd65e89f3c1639f662cc6f64766b.zip
FreeBSD-src-6ec258b966b9dd65e89f3c1639f662cc6f64766b.tar.gz
null out m_next when marshalling a packet
Diffstat (limited to 'sys/dev/cxgb')
-rw-r--r--sys/dev/cxgb/sys/uipc_mvec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/cxgb/sys/uipc_mvec.c b/sys/dev/cxgb/sys/uipc_mvec.c
index 1293e22..1c6f4b2 100644
--- a/sys/dev/cxgb/sys/uipc_mvec.c
+++ b/sys/dev/cxgb/sys/uipc_mvec.c
@@ -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;
OpenPOWER on IntegriCloud