Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Nov 2011 20:25:30 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227091 - head/sys/dev/ti
Message-ID:  <201111042025.pA4KPUnb033164@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111042025.pA4KPUnb033164>