diff options
author | ian <ian@FreeBSD.org> | 2016-01-24 18:25:37 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2016-01-24 18:25:37 +0000 |
commit | 543007eb9747991c19b8461954dcfad129411bda (patch) | |
tree | 6f10e410d58b48427cf6b3228bc751fb2991fb40 | |
parent | 58256dbc0b6f4c1875289274a95f4bd335be07e5 (diff) | |
download | FreeBSD-src-543007eb9747991c19b8461954dcfad129411bda.zip FreeBSD-src-543007eb9747991c19b8461954dcfad129411bda.tar.gz |
MFC r289619:
Follow the advice of the misplaced comment and don't access the map struct
after freeing it. Remove the comment whose uselessness has been revealed.
-rw-r--r-- | sys/arm/arm/busdma_machdep.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arm/arm/busdma_machdep.c b/sys/arm/arm/busdma_machdep.c index d24f2d2..c130731 100644 --- a/sys/arm/arm/busdma_machdep.c +++ b/sys/arm/arm/busdma_machdep.c @@ -786,10 +786,9 @@ bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map) ba = coherent_allocator; else ba = standard_allocator; - uma_zfree(dmamap_zone, map); free(map->slist, M_DEVBUF); - /* Be careful not to access map from here on. */ + uma_zfree(dmamap_zone, map); bufzone = busdma_bufalloc_findzone(ba, dmat->maxsize); |