re_freebufmem() may be re-entered, so set the mbuf tag to NULL after it is
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 5 Oct 2008 08:28:32 +0000 (08:28 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 5 Oct 2008 08:28:32 +0000 (08:28 +0000)
destroyed.

sys/dev/netif/re/if_re.c

index 6cf48fe..61124b0 100644 (file)
@@ -33,7 +33,7 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/dev/re/if_re.c,v 1.25 2004/06/09 14:34:01 naddy Exp $
- * $DragonFly: src/sys/dev/netif/re/if_re.c,v 1.66 2008/10/05 07:57:45 sephe Exp $
+ * $DragonFly: src/sys/dev/netif/re/if_re.c,v 1.67 2008/10/05 08:28:32 sephe Exp $
  */
 
 /*
@@ -1145,6 +1145,7 @@ re_freebufmem(struct re_softc *sc, int tx_cnt, int rx_cnt)
                bus_dmamap_destroy(sc->re_ldata.re_mtag,
                                   sc->re_ldata.re_rx_spare);
                bus_dma_tag_destroy(sc->re_ldata.re_mtag);
+               sc->re_ldata.re_mtag = NULL;
        }
 }