Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jan 2014 20:32:21 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r260893 - head/sys/dev/aha
Message-ID:  <201401192032.s0JKWLQg088564@svn.freebsd.org>

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



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