From 355dc2b707f19d9aaf1286f99f6c5aa6626ba84c Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Sat, 2 Feb 2008 07:30:02 +0000 Subject: MFC 1.7: use m_gethdr to populate the rx ring Approved by: re (kensmith) --- 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 98c5b9262495..7a85efced87d 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"); -- cgit v1.3