summaryrefslogtreecommitdiffstats
path: root/sys/dev/sge
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2010-05-04 21:23:59 +0000
committeryongari <yongari@FreeBSD.org>2010-05-04 21:23:59 +0000
commitd606e39dd9fd9e3347aeb03267df253fa31b4f1a (patch)
treedb60c75a3f792ce5902e6c2563950668ea8154e1 /sys/dev/sge
parentb1f2a2d1bf5b405cd7fdc2686ebba8457803af24 (diff)
downloadFreeBSD-src-d606e39dd9fd9e3347aeb03267df253fa31b4f1a.zip
FreeBSD-src-d606e39dd9fd9e3347aeb03267df253fa31b4f1a.tar.gz
Free entire mbuf chain instead of the first mbuf.
Diffstat (limited to 'sys/dev/sge')
-rw-r--r--sys/dev/sge/if_sge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sge/if_sge.c b/sys/dev/sge/if_sge.c
index c384983..ee88cb6 100644
--- a/sys/dev/sge/if_sge.c
+++ b/sys/dev/sge/if_sge.c
@@ -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;
}
}
OpenPOWER on IntegriCloud