Use a RX DMA tag to free loaded RX DMA maps.

Previously it used a TX DMA tag.
This commit is contained in:
Pyun YongHyeon 2012-01-17 19:31:03 +00:00
parent a1f698ef1c
commit cba163625e

View File

@ -3576,7 +3576,7 @@ re_stop(struct rl_softc *sc)
for (i = 0; i < sc->rl_ldata.rl_rx_desc_cnt; i++) {
rxd = &sc->rl_ldata.rl_rx_desc[i];
if (rxd->rx_m != NULL) {
bus_dmamap_sync(sc->rl_ldata.rl_tx_mtag,
bus_dmamap_sync(sc->rl_ldata.rl_rx_mtag,
rxd->rx_dmamap, BUS_DMASYNC_POSTREAD);
bus_dmamap_unload(sc->rl_ldata.rl_rx_mtag,
rxd->rx_dmamap);