From 93ae47478c89894221b3d8bb1ec21952d5d01264 Mon Sep 17 00:00:00 2001 From: Andriy Voskoboinyk Date: Tue, 6 Sep 2016 12:00:16 +0000 Subject: [PATCH] rum: use m_get2() in Rx path. --- sys/dev/usb/wlan/if_rum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/wlan/if_rum.c b/sys/dev/usb/wlan/if_rum.c index a2fa351d370..924458159ab 100644 --- a/sys/dev/usb/wlan/if_rum.c +++ b/sys/dev/usb/wlan/if_rum.c @@ -1205,7 +1205,7 @@ rum_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error) goto tr_setup; } - m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR); + m = m_get2(len, M_NOWAIT, MT_DATA, M_PKTHDR); if (m == NULL) { DPRINTF("could not allocate mbuf\n"); counter_u64_add(ic->ic_ierrors, 1);