From 3b0f89fd90ab746dde5c7c4e081c014f1bbf82a9 Mon Sep 17 00:00:00 2001 From: delphij Date: Fri, 11 Jul 2008 18:26:12 +0000 Subject: Don't leak DMA map if not freed. Submitted by: kevlo --- sys/dev/et/if_et.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/et') diff --git a/sys/dev/et/if_et.c b/sys/dev/et/if_et.c index 7853144..b59cf78 100644 --- a/sys/dev/et/if_et.c +++ b/sys/dev/et/if_et.c @@ -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; } -- cgit v1.1