Do not create dma maps with bus_dmamap_create, as we call

bus_dmamem_alloc later which will overwrite the value, leading to a small
memory leak.
This commit is contained in:
Olivier Houchard 2006-08-25 13:38:42 +00:00
parent 40f734dd0d
commit 223d2768ad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161617

View File

@ -352,11 +352,6 @@ ate_activate(device_t dev)
busdma_lock_mutex, &sc->sc_mtx, &sc->rxtag);
if (err != 0)
goto errout;
for (i = 0; i < ATE_MAX_RX_BUFFERS; i++) {
err = bus_dmamap_create(sc->rxtag, 0, &sc->rx_map[i]);
if (err != 0)
goto errout;
}
/* Dma TAG and MAP for the rx descriptors. */
err = bus_dma_tag_create(NULL, sizeof(eth_rx_desc_t), 0,