diff options
author | iedowse <iedowse@FreeBSD.org> | 2004-04-06 19:32:00 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2004-04-06 19:32:00 +0000 |
commit | d39c4df474418c0749bb54f00b6e20eda65572ec (patch) | |
tree | 53f9b72fea006614489d0cfee126e19e2f826555 /sys/dev/usb/if_rue.c | |
parent | ea51c85889c87bee9a2f04595f5bf31476c85df4 (diff) | |
download | FreeBSD-src-d39c4df474418c0749bb54f00b6e20eda65572ec.zip FreeBSD-src-d39c4df474418c0749bb54f00b6e20eda65572ec.tar.gz |
Use the correct flag for mbuf allocations (M_DONTWAIT, not M_NOWAIT).
Diffstat (limited to 'sys/dev/usb/if_rue.c')
-rw-r--r-- | sys/dev/usb/if_rue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_rue.c b/sys/dev/usb/if_rue.c index d0bda30..ab05653 100644 --- a/sys/dev/usb/if_rue.c +++ b/sys/dev/usb/if_rue.c @@ -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); |