summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2011-12-13 20:31:57 +0000
committeryongari <yongari@FreeBSD.org>2011-12-13 20:31:57 +0000
commit84c9c96d4a9d825c7978a804d7c208aacb2d2c67 (patch)
treef0b270de4486c0c26fc1572bed9fa0731b619b60 /sys
parentf563b0b3f4d8603ab6d7dc5632ca80a4f0129ef8 (diff)
downloadFreeBSD-src-84c9c96d4a9d825c7978a804d7c208aacb2d2c67.zip
FreeBSD-src-84c9c96d4a9d825c7978a804d7c208aacb2d2c67.tar.gz
Destroy DMA tag for jumbo RX buffer in device detach.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/bge/if_bge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index 64bc1ef..ea477fd 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -2358,6 +2358,8 @@ bge_dma_free(struct bge_softc *sc)
if (sc->bge_cdata.bge_rx_mtag)
bus_dma_tag_destroy(sc->bge_cdata.bge_rx_mtag);
+ if (sc->bge_cdata.bge_mtag_jumbo)
+ bus_dma_tag_destroy(sc->bge_cdata.bge_mtag_jumbo);
if (sc->bge_cdata.bge_tx_mtag)
bus_dma_tag_destroy(sc->bge_cdata.bge_tx_mtag);
OpenPOWER on IntegriCloud