diff options
author | delphij <delphij@FreeBSD.org> | 2008-07-11 18:26:12 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2008-07-11 18:26:12 +0000 |
commit | 3b0f89fd90ab746dde5c7c4e081c014f1bbf82a9 (patch) | |
tree | 409ca623209742f4586aac1539fe0787a5718155 /sys/dev | |
parent | 797b3cb5549559076402e7ae296f5435b49123ef (diff) | |
download | FreeBSD-src-3b0f89fd90ab746dde5c7c4e081c014f1bbf82a9.zip FreeBSD-src-3b0f89fd90ab746dde5c7c4e081c014f1bbf82a9.tar.gz |
Don't leak DMA map if not freed.
Submitted by: kevlo
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/et/if_et.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |