From 650bd88c746e3b9ceef88529681db34537829e50 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Sat, 26 Jan 2008 22:35:57 +0000 Subject: [PATCH] rx mbufs must have a pkthdr; use m_gethdr to populate the rx ring (and while here correct the mbuf type) Submitted by: Sam Banks MFC after: 1 week --- sys/dev/wpi/if_wpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c index a6c4cb821f5d..cc56c8ae2c6f 100644 --- a/sys/dev/wpi/if_wpi.c +++ b/sys/dev/wpi/if_wpi.c @@ -1041,7 +1041,7 @@ wpi_alloc_rx_ring(struct wpi_softc *sc, struct wpi_rx_ring *ring) for (i = 0; i < WPI_RX_RING_COUNT; i++) { data = &ring->data[i]; - data->m = m_get(M_DONTWAIT, MT_HEADER); + data->m = m_gethdr(M_DONTWAIT, MT_DATA); if (data->m == NULL) { device_printf(sc->sc_dev, "could not allocate rx mbuf\n");