summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2006-04-07 12:38:13 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2006-04-07 12:38:13 +0000
commit2a6ba1728aad46fff56bbff85d1008c007a1d558 (patch)
tree5dec2f66905a0317a6d65b3c7ebe2ce20dd7dd02 /sys/dev/pci
parente31e9a1e7f88a9bf938136251eae26a08c4d0187 (diff)
Add work around for mbuf leak in the tx path until we
can come up with a better guess as to how the hardware works. From Chuck Silvers. ok damien@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_nfe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c
index 00b9c8017f8..cde2a3ea7d2 100644
--- a/sys/dev/pci/if_nfe.c
+++ b/sys/dev/pci/if_nfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nfe.c,v 1.53 2006/03/25 22:41:45 djm Exp $ */
+/* $OpenBSD: if_nfe.c,v 1.54 2006/04/07 12:38:12 jsg Exp $ */
/*-
* Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr>
@@ -812,7 +812,7 @@ nfe_txeof(struct nfe_softc *sc)
data = &sc->txq.data[sc->txq.next];
if ((sc->sc_flags & (NFE_JUMBO_SUP | NFE_40BIT_ADDR)) == 0) {
- if (!(flags & NFE_TX_LASTFRAG_V1))
+ if (!(flags & NFE_TX_LASTFRAG_V1) && data->m == NULL)
goto skip;
if ((flags & NFE_TX_ERROR_V1) != 0) {
@@ -822,7 +822,7 @@ nfe_txeof(struct nfe_softc *sc)
} else
ifp->if_opackets++;
} else {
- if (!(flags & NFE_TX_LASTFRAG_V2))
+ if (!(flags & NFE_TX_LASTFRAG_V2) && data->m == NULL)
goto skip;
if ((flags & NFE_TX_ERROR_V2) != 0) {