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:
parent
40f734dd0d
commit
223d2768ad
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161617
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user