Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2009 17:07:29 +0000 (UTC)
From:      Max Khon <fjoe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188396 - head/sys/dev/de
Message-ID:  <200902091707.n19H7T64066041@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fjoe
Date: Mon Feb  9 17:07:29 2009
New Revision: 188396
URL: http://svn.freebsd.org/changeset/base/188396

Log:
  tulip_busdma_cleanup: pass correct vaddr (2nd arg) to bus_dmamem_free()
  
  Found with:	Coverity Prevent(tm)
  CID:		1998

Modified:
  head/sys/dev/de/if_de.c

Modified: head/sys/dev/de/if_de.c
==============================================================================
--- head/sys/dev/de/if_de.c	Mon Feb  9 17:02:54 2009	(r188395)
+++ head/sys/dev/de/if_de.c	Mon Feb  9 17:07:29 2009	(r188396)
@@ -4561,7 +4561,7 @@ tulip_busdma_cleanup(tulip_softc_t * con
 	sc->tulip_setup_dma_addr = 0;
     }
     if (sc->tulip_setupbuf != NULL) {
-	bus_dmamem_free(sc->tulip_setup_tag, sc->tulip_setupdata,
+	bus_dmamem_free(sc->tulip_setup_tag, sc->tulip_setupbuf,
 	    sc->tulip_setup_map);
 	sc->tulip_setup_map = NULL;
 	sc->tulip_setupbuf = NULL;



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