svn commit: r260893 - head/sys/dev/aha
Warner Losh
imp at FreeBSD.org
Sun Jan 19 20:32:21 UTC 2014
Author: imp
Date: Sun Jan 19 20:32:20 2014
New Revision: 260893
URL: http://svnweb.freebsd.org/changeset/base/260893
Log:
Free the dma memory from the dma map before destroying the dma map.
Modified:
head/sys/dev/aha/aha.c
Modified: head/sys/dev/aha/aha.c
==============================================================================
--- head/sys/dev/aha/aha.c Sun Jan 19 19:58:44 2014 (r260892)
+++ head/sys/dev/aha/aha.c Sun Jan 19 20:32:20 2014 (r260893)
@@ -207,9 +207,9 @@ aha_free(struct aha_softc *aha)
case 7:
bus_dmamap_unload(aha->ccb_dmat, aha->ccb_dmamap);
case 6:
- bus_dmamap_destroy(aha->ccb_dmat, aha->ccb_dmamap);
bus_dmamem_free(aha->ccb_dmat, aha->aha_ccb_array,
aha->ccb_dmamap);
+ bus_dmamap_destroy(aha->ccb_dmat, aha->ccb_dmamap);
case 5:
bus_dma_tag_destroy(aha->ccb_dmat);
case 4:
More information about the svn-src-head
mailing list