svn commit: r266089 - stable/10/sys/dev/aha

Ian Lepore ian at FreeBSD.org
Wed May 14 20:47:52 UTC 2014


Author: ian
Date: Wed May 14 20:47:51 2014
New Revision: 266089
URL: http://svnweb.freebsd.org/changeset/base/266089

Log:
  MFC r260893: Free dma memory from the dma map before destroying the map.

Modified:
  stable/10/sys/dev/aha/aha.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/aha/aha.c
==============================================================================
--- stable/10/sys/dev/aha/aha.c	Wed May 14 20:38:05 2014	(r266088)
+++ stable/10/sys/dev/aha/aha.c	Wed May 14 20:47:51 2014	(r266089)
@@ -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-all mailing list