summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_xlreg.h
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2003-02-18 18:50:54 +0000
committermux <mux@FreeBSD.org>2003-02-18 18:50:54 +0000
commitd0626528fb759910b36578f9a641dfe8a76aa8a5 (patch)
treefd960312e300416c019c65c951feb33a2c98eeff /sys/pci/if_xlreg.h
parent0006bd27309c961166c11265c90abdea81ad2cd3 (diff)
downloadFreeBSD-src-d0626528fb759910b36578f9a641dfe8a76aa8a5.zip
FreeBSD-src-d0626528fb759910b36578f9a641dfe8a76aa8a5.tar.gz
- Fix mbuf leak when we successfully allocate a new mbuf but fail to
bus_dmamap_load() it. - Make it so reusing mbufs when we can't allocate (or map) new ones actually works. We were previously trying to reuse a mbuf which was already bus_dmamap_unload()'ed. Reviewed by: silby
Diffstat (limited to 'sys/pci/if_xlreg.h')
-rw-r--r--sys/pci/if_xlreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/if_xlreg.h b/sys/pci/if_xlreg.h
index 0a5ce44..f4dadbd 100644
--- a/sys/pci/if_xlreg.h
+++ b/sys/pci/if_xlreg.h
@@ -584,6 +584,7 @@ struct xl_softc {
device_t xl_miibus;
struct xl_type *xl_info; /* 3Com adapter info */
bus_dma_tag_t xl_mtag;
+ bus_dmamap_t xl_tmpmap; /* spare DMA map */
u_int8_t xl_unit; /* interface number */
u_int8_t xl_type;
u_int32_t xl_xcvr;
OpenPOWER on IntegriCloud