summaryrefslogtreecommitdiffstats
path: root/sys/dev/wi/if_wi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/wi/if_wi.c')
-rw-r--r--sys/dev/wi/if_wi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index 5d469a1..fb2a214 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -915,9 +915,9 @@ wi_start(struct ifnet *ifp)
if (sc->sc_drvbpf) {
struct mbuf *mb;
- MGETHDR(mb, M_DONTWAIT, m0->m_type);
+ MGETHDR(mb, M_NOWAIT, m0->m_type);
if (mb != NULL) {
- (void) m_dup_pkthdr(mb, m0, M_DONTWAIT);
+ (void) m_dup_pkthdr(mb, m0, M_NOWAIT);
mb->m_next = m0;
mb->m_data = (caddr_t)&frmhdr;
mb->m_len = sizeof(frmhdr);
@@ -1344,7 +1344,7 @@ wi_rx_intr(struct wi_softc *sc)
len = le16toh(frmhdr.wi_dat_len);
off = ALIGN(sizeof(struct ieee80211_frame));
- MGETHDR(m, M_DONTWAIT, MT_DATA);
+ MGETHDR(m, M_NOWAIT, MT_DATA);
if (m == NULL) {
CSR_WRITE_2(sc, WI_EVENT_ACK, WI_EV_RX);
ifp->if_ierrors++;
@@ -1352,7 +1352,7 @@ wi_rx_intr(struct wi_softc *sc)
return;
}
if (off + len > MHLEN) {
- MCLGET(m, M_DONTWAIT);
+ MCLGET(m, M_NOWAIT);
if ((m->m_flags & M_EXT) == 0) {
CSR_WRITE_2(sc, WI_EVENT_ACK, WI_EV_RX);
m_freem(m);
@@ -1375,9 +1375,9 @@ wi_rx_intr(struct wi_softc *sc)
if (sc->sc_drvbpf) {
struct mbuf *mb;
- MGETHDR(mb, M_DONTWAIT, m->m_type);
+ MGETHDR(mb, M_NOWAIT, m->m_type);
if (mb != NULL) {
- (void) m_dup_pkthdr(mb, m, M_DONTWAIT);
+ (void) m_dup_pkthdr(mb, m, M_NOWAIT);
mb->m_next = m;
mb->m_data = (caddr_t)&frmhdr;
mb->m_len = sizeof(frmhdr);
OpenPOWER on IntegriCloud