mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue