diff options
author | ian <ian@FreeBSD.org> | 2015-10-20 03:27:59 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2015-10-20 03:27:59 +0000 |
commit | 290940e1f5f17a60ab5f90f5d38c2e56a2428647 (patch) | |
tree | e4aab82e3eb762d44e9aa4fa9c85ebe321a96aa6 /sys/arm | |
parent | e4cc0fc7e47772da11f6429cd72b00999c1ba56b (diff) | |
download | FreeBSD-src-290940e1f5f17a60ab5f90f5d38c2e56a2428647.zip FreeBSD-src-290940e1f5f17a60ab5f90f5d38c2e56a2428647.tar.gz |
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.
Diffstat (limited to 'sys/arm')
-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 d7498c5..bc3035d 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); |