Don't leak DMA map if not freed.
Submitted by: kevlo
This commit is contained in:
parent
797b3cb554
commit
3b0f89fd90
@ -1326,6 +1326,8 @@ et_free_rx_ring(struct et_softc *sc)
|
||||
struct et_rxbuf *rb = &rbd->rbd_buf[i];
|
||||
|
||||
if (rb->rb_mbuf != NULL) {
|
||||
bus_dmamap_unload(sc->sc_mbuf_dtag,
|
||||
rb->rb_dmap);
|
||||
m_freem(rb->rb_mbuf);
|
||||
rb->rb_mbuf = NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user