null out m_next when marshalling a packet
This commit is contained in:
parent
f35c2d6551
commit
69c4b66c6d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185509
@ -293,7 +293,9 @@ busdma_map_sg_collapse(struct mbuf **m, bus_dma_segment_t *segs, int *nsegs)
|
||||
/*
|
||||
* 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;
|
||||
|
Loading…
Reference in New Issue
Block a user