Don't check the dma map address for a static DMA mapping against NULL
to determine if the mapping is valid. Submitted by: jhb
This commit is contained in:
parent
c67bc4dbda
commit
9945063d70
@ -3886,7 +3886,7 @@ vmxnet3_dma_free(struct vmxnet3_softc *sc, struct vmxnet3_dma_alloc *dma)
|
|||||||
{
|
{
|
||||||
|
|
||||||
if (dma->dma_tag != NULL) {
|
if (dma->dma_tag != NULL) {
|
||||||
if (dma->dma_map != NULL) {
|
if (dma->dma_paddr != 0) {
|
||||||
bus_dmamap_sync(dma->dma_tag, dma->dma_map,
|
bus_dmamap_sync(dma->dma_tag, dma->dma_map,
|
||||||
BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE);
|
BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE);
|
||||||
bus_dmamap_unload(dma->dma_tag, dma->dma_map);
|
bus_dmamap_unload(dma->dma_tag, dma->dma_map);
|
||||||
|
Loading…
Reference in New Issue
Block a user