Check m_getcl() return value.
CID: 611376
This commit is contained in:
parent
ff300d2316
commit
72b09927ed
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user