svn commit: r197464 - head/sys/dev/de

Pyun YongHyeon yongari at FreeBSD.org
Thu Sep 24 17:11:41 UTC 2009


Author: yongari
Date: Thu Sep 24 17:11:41 2009
New Revision: 197464
URL: http://svn.freebsd.org/changeset/base/197464

Log:
  Destroy dmamap in dma cleanup.

Modified:
  head/sys/dev/de/if_de.c

Modified: head/sys/dev/de/if_de.c
==============================================================================
--- head/sys/dev/de/if_de.c	Thu Sep 24 17:07:04 2009	(r197463)
+++ head/sys/dev/de/if_de.c	Thu Sep 24 17:11:41 2009	(r197464)
@@ -4563,6 +4563,7 @@ tulip_busdma_cleanup(tulip_softc_t * con
     if (sc->tulip_setupbuf != NULL) {
 	bus_dmamem_free(sc->tulip_setup_tag, sc->tulip_setupbuf,
 	    sc->tulip_setup_map);
+	bus_dmamap_destroy(sc->tulip_setup_tag, sc->tulip_setup_map);
 	sc->tulip_setup_map = NULL;
 	sc->tulip_setupbuf = NULL;
     }


More information about the svn-src-head mailing list