tulip_busdma_cleanup: pass correct vaddr (2nd arg) to bus_dmamem_free()

Found with:	Coverity Prevent(tm)
CID:		1998
This commit is contained in:
Max Khon 2009-02-09 17:07:29 +00:00
parent aa812d9e2a
commit 7c9d6ad424

View File

@ -4561,7 +4561,7 @@ tulip_busdma_cleanup(tulip_softc_t * const sc)
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;