From 69c4b66c6d609d0a896abcc1ba8cda4b2da49c49 Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Mon, 1 Dec 2008 05:44:08 +0000 Subject: [PATCH] null out m_next when marshalling a packet --- sys/dev/cxgb/sys/uipc_mvec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/cxgb/sys/uipc_mvec.c b/sys/dev/cxgb/sys/uipc_mvec.c index 1293e22b1e48..1c6f4b287af8 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;