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.
This commit is contained in:
ian 2016-01-24 18:25:37 +00:00
parent 58256dbc0b
commit 543007eb97

View File

@ -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);