mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 08:00:30 +00:00
The "m = m->m_next" that was removed in the revision 1.12 was necessary
for the m->m_next != NULL case to avoid looping infinitely when the first mbuf in the chain becomes full.
This commit is contained in:
parent
30621e142d
commit
a44a414e11
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111126
|
@ -195,7 +195,8 @@ mb_put_mem(struct mbchain *mbp, c_caddr_t source, int size, int type)
|
||||||
m = m_getm(m, size, M_TRYWAIT, MT_DATA);
|
m = m_getm(m, size, M_TRYWAIT, MT_DATA);
|
||||||
if (m == NULL)
|
if (m == NULL)
|
||||||
return ENOBUFS;
|
return ENOBUFS;
|
||||||
}
|
} else
|
||||||
|
m = m->m_next;
|
||||||
mleft = M_TRAILINGSPACE(m);
|
mleft = M_TRAILINGSPACE(m);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue