Use the correct flag for mbuf allocations (M_DONTWAIT, not M_NOWAIT).
This commit is contained in:
parent
255ec151e6
commit
a76d86b892
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127956
@ -776,14 +776,14 @@ rue_newbuf(struct rue_softc *sc, struct rue_chain *c, struct mbuf *m)
|
||||
struct mbuf *m_new = NULL;
|
||||
|
||||
if (m == NULL) {
|
||||
MGETHDR(m_new, M_NOWAIT, MT_DATA);
|
||||
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
|
||||
if (m_new == NULL) {
|
||||
printf("rue%d: no memory for rx list "
|
||||
"-- packet dropped!\n", sc->rue_unit);
|
||||
return (ENOBUFS);
|
||||
}
|
||||
|
||||
MCLGET(m_new, M_NOWAIT);
|
||||
MCLGET(m_new, M_DONTWAIT);
|
||||
if (!(m_new->m_flags & M_EXT)) {
|
||||
printf("rue%d: no memory for rx list "
|
||||
"-- packet dropped!\n", sc->rue_unit);
|
||||
|
Loading…
Reference in New Issue
Block a user