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:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to