mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +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);
|
||||
if (m == NULL)
|
||||
return ENOBUFS;
|
||||
}
|
||||
} else
|
||||
m = m->m_next;
|
||||
mleft = M_TRAILINGSPACE(m);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user