mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't leak DMA map if not freed.
Submitted by: kevlo
This commit is contained in:
parent
f0f78f3513
commit
b4b9862495
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue