Author: yongari
Date: Fri Nov 4 20:25:30 2011
New Revision: 227091
URL: http://svn.freebsd.org/changeset/base/227091
Log:
Make sure to unload loaded DMA area(descriptor, command, event ring).
Modified:
head/sys/dev/ti/if_ti.c
Modified: head/sys/dev/ti/if_ti.c
==============================================================================
--- head/sys/dev/ti/if_ti.c Fri Nov 4 19:56:34 2011 (r227090)
+++ head/sys/dev/ti/if_ti.c Fri Nov 4 20:25:30 2011 (r227091)
@@ -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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"