aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bfe/if_bfe.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2016-10-25 16:28:30 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2016-10-25 16:28:30 +0000
commit72b09927ed3ce7255a6a69c5cb15643cf24fb317 (patch)
tree7b54f4fb222c67e4cbae812d416b87518d56dd62 /sys/dev/bfe/if_bfe.c
parentff300d23166aac356f4cf9f960d02ff7a3ba753e (diff)
Notes
Diffstat (limited to 'sys/dev/bfe/if_bfe.c')
-rw-r--r--sys/dev/bfe/if_bfe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c
index eaad8f0b59818..50cb173f8e734 100644
--- a/sys/dev/bfe/if_bfe.c
+++ b/sys/dev/bfe/if_bfe.c
@@ -793,6 +793,8 @@ bfe_list_newbuf(struct bfe_softc *sc, int c)
int nsegs;
m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
+ if (m == NULL)
+ return (ENOBUFS);
m->m_len = m->m_pkthdr.len = MCLBYTES;
if (bus_dmamap_load_mbuf_sg(sc->bfe_rxmbuf_tag, sc->bfe_rx_sparemap,