Author: yongari
Date: Tue May  4 21:23:59 2010
New Revision: 207635
URL: http://svn.freebsd.org/changeset/base/207635

Log:
  Free entire mbuf chain instead of the first mbuf.

Modified:
  head/sys/dev/sge/if_sge.c

Modified: head/sys/dev/sge/if_sge.c
==============================================================================
--- head/sys/dev/sge/if_sge.c   Tue May  4 21:21:05 2010        (r207634)
+++ head/sys/dev/sge/if_sge.c   Tue May  4 21:23:59 2010        (r207635)
@@ -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;
                }
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to