summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2004-04-06 19:32:00 +0000
committeriedowse <iedowse@FreeBSD.org>2004-04-06 19:32:00 +0000
commitd39c4df474418c0749bb54f00b6e20eda65572ec (patch)
tree53f9b72fea006614489d0cfee126e19e2f826555
parentea51c85889c87bee9a2f04595f5bf31476c85df4 (diff)
downloadFreeBSD-src-d39c4df474418c0749bb54f00b6e20eda65572ec.zip
FreeBSD-src-d39c4df474418c0749bb54f00b6e20eda65572ec.tar.gz
Use the correct flag for mbuf allocations (M_DONTWAIT, not M_NOWAIT).
-rw-r--r--sys/dev/usb/if_rue.c4
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);
OpenPOWER on IntegriCloud