aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ti
diff options
context:
space:
mode:
authorPyun YongHyeon <yongari@FreeBSD.org>2011-11-04 20:25:30 +0000
committerPyun YongHyeon <yongari@FreeBSD.org>2011-11-04 20:25:30 +0000
commit5948254c2a2ae1992c122598c1e0f5e2c6760d04 (patch)
tree42ac66759382db6289cbec60477fbe598ea63dfd /sys/dev/ti
parent24a92ae013c8f82a5a64566a1128f3da140a0e08 (diff)
downloadsrc-5948254c2a2ae1992c122598c1e0f5e2c6760d04.tar.gz
src-5948254c2a2ae1992c122598c1e0f5e2c6760d04.zip
Make sure to unload loaded DMA area(descriptor, command, event ring).
Notes
Notes: svn path=/head/; revision=227091
Diffstat (limited to 'sys/dev/ti')
-rw-r--r--sys/dev/ti/if_ti.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c
index bb33e250f414..4c24ad99cf2a 100644
--- a/sys/dev/ti/if_ti.c
+++ b/sys/dev/ti/if_ti.c
@@ -2522,6 +2522,8 @@ ti_detach(device_t dev)
bus_dma_tag_destroy(sc->ti_mbuftx_dmat);
if (sc->ti_mbufrx_dmat)
bus_dma_tag_destroy(sc->ti_mbufrx_dmat);
+ if (sc->ti_rdata && sc->ti_rdata_dmamap)
+ bus_dmamap_unload(sc->ti_rdata_dmat, sc->ti_rdata_dmamap);
if (sc->ti_rdata)
bus_dmamem_free(sc->ti_rdata_dmat, sc->ti_rdata,
sc->ti_rdata_dmamap);