From a76d86b89227406aea057a629e2542e076656b5d Mon Sep 17 00:00:00 2001 From: Ian Dowse Date: Tue, 6 Apr 2004 19:32:00 +0000 Subject: [PATCH] Use the correct flag for mbuf allocations (M_DONTWAIT, not M_NOWAIT). --- sys/dev/usb/if_rue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/if_rue.c b/sys/dev/usb/if_rue.c index d0bda30d6e15..ab05653ea661 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);