aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aha
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2014-01-19 20:32:20 +0000
committerWarner Losh <imp@FreeBSD.org>2014-01-19 20:32:20 +0000
commit1a75471bbbae4809dde4e08cf1e829e5cc2b5b79 (patch)
treeb7c15f071236a3b9726e00aa93d0c1b48534e810 /sys/dev/aha
parentd76a1ef4e1adf1729f970e3787bd89276e2ee9db (diff)
downloadsrc-1a75471bbbae4809dde4e08cf1e829e5cc2b5b79.tar.gz
src-1a75471bbbae4809dde4e08cf1e829e5cc2b5b79.zip
Free the dma memory from the dma map before destroying the dma map.
Notes
Notes: svn path=/head/; revision=260893
Diffstat (limited to 'sys/dev/aha')
-rw-r--r--sys/dev/aha/aha.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c
index ee9cc72b7f10..4efbb32d159f 100644
--- a/sys/dev/aha/aha.c
+++ b/sys/dev/aha/aha.c
@@ -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: