If m_defrag() succeeds, the original mbuf has already been freed, so don't
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 2 Oct 2005 10:01:05 +0000 (10:01 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 2 Oct 2005 10:01:05 +0000 (10:01 +0000)
free it again.

Reviewed-by: joerg, dillon
sys/dev/netif/nv/if_nv.c

index 013afc5..9b0a7d9 100644 (file)
@@ -24,7 +24,7 @@
  * SUCH DAMAGE.
  * 
  * $Id: if_nv.c,v 1.20 2005/03/12 01:11:00 q Exp $
- * $DragonFly: src/sys/dev/netif/nv/Attic/if_nv.c,v 1.16 2005/09/20 01:51:08 dillon Exp $
+ * $DragonFly: src/sys/dev/netif/nv/Attic/if_nv.c,v 1.17 2005/10/02 10:01:05 sephe Exp $
  */
 
 /*
@@ -871,7 +871,6 @@ nv_ifstart(struct ifnet *ifp)
                                sc->tx_errors++;
                                continue;
                        }
-                       m_freem(m0);
                        m0 = m;
 
                        error = bus_dmamap_load_mbuf(sc->mtag, buf->map, m,