diff options
Diffstat (limited to 'sys/pci/if_vr.c')
-rw-r--r-- | sys/pci/if_vr.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/pci/if_vr.c b/sys/pci/if_vr.c index f037294..0956396 100644 --- a/sys/pci/if_vr.c +++ b/sys/pci/if_vr.c @@ -924,16 +924,11 @@ static int vr_newbuf(sc, c, m) if (m == NULL) { MGETHDR(m_new, M_DONTWAIT, MT_DATA); - if (m_new == NULL) { - printf("vr%d: no memory for rx list " - "-- packet dropped!\n", sc->vr_unit); + if (m_new == NULL) return(ENOBUFS); - } MCLGET(m_new, M_DONTWAIT); if (!(m_new->m_flags & M_EXT)) { - printf("vr%d: no memory for rx list " - "-- packet dropped!\n", sc->vr_unit); m_freem(m_new); return(ENOBUFS); } |