Don't leak DMA map if not freed.

Submitted by:	kevlo
This commit is contained in:
delphij 2008-07-11 18:26:12 +00:00
parent 797b3cb554
commit 3b0f89fd90

View File

@ -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;
}