Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jun 2014 23:36:17 +0000 (UTC)
From:      Bryan Venteicher <bryanv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267488 - head/sys/dev/vmware/vmxnet3
Message-ID:  <201406142336.s5ENaI0h057843@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bryanv
Date: Sat Jun 14 23:36:17 2014
New Revision: 267488
URL: http://svnweb.freebsd.org/changeset/base/267488

Log:
  Don't check the dma map address for a static DMA mapping against NULL
  to determine if the mapping is valid.
  
  Submitted by:	jhb

Modified:
  head/sys/dev/vmware/vmxnet3/if_vmx.c

Modified: head/sys/dev/vmware/vmxnet3/if_vmx.c
==============================================================================
--- head/sys/dev/vmware/vmxnet3/if_vmx.c	Sat Jun 14 22:47:25 2014	(r267487)
+++ head/sys/dev/vmware/vmxnet3/if_vmx.c	Sat Jun 14 23:36:17 2014	(r267488)
@@ -3886,7 +3886,7 @@ vmxnet3_dma_free(struct vmxnet3_softc *s
 {
 
 	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_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE);
 			bus_dmamap_unload(dma->dma_tag, dma->dma_map);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406142336.s5ENaI0h057843>