mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Free entire mbuf chain instead of the first mbuf.
This commit is contained in:
parent
54934285c7
commit
f648f6bb0c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207635
|
@ -1015,7 +1015,7 @@ sge_list_tx_free(struct sge_softc *sc)
|
|||
bus_dmamap_sync(cd->sge_txmbuf_tag, txd->tx_dmamap,
|
||||
BUS_DMASYNC_POSTWRITE);
|
||||
bus_dmamap_unload(cd->sge_txmbuf_tag, txd->tx_dmamap);
|
||||
m_free(txd->tx_m);
|
||||
m_freem(txd->tx_m);
|
||||
txd->tx_m = NULL;
|
||||
txd->tx_ndesc = 0;
|
||||
}
|
||||
|
@ -1064,7 +1064,7 @@ sge_list_rx_free(struct sge_softc *sc)
|
|||
BUS_DMASYNC_POSTREAD);
|
||||
bus_dmamap_unload(cd->sge_rxmbuf_tag,
|
||||
rxd->rx_dmamap);
|
||||
m_free(rxd->rx_m);
|
||||
m_freem(rxd->rx_m);
|
||||
rxd->rx_m = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue