Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Sep 2016 12:00:16 +0000 (UTC)
From:      Andriy Voskoboinyk <avos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r305473 - head/sys/dev/usb/wlan
Message-ID:  <201609061200.u86C0GXw015113@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avos
Date: Tue Sep  6 12:00:16 2016
New Revision: 305473
URL: https://svnweb.freebsd.org/changeset/base/305473

Log:
  rum: use m_get2() in Rx path.

Modified:
  head/sys/dev/usb/wlan/if_rum.c

Modified: head/sys/dev/usb/wlan/if_rum.c
==============================================================================
--- head/sys/dev/usb/wlan/if_rum.c	Tue Sep  6 11:08:32 2016	(r305472)
+++ head/sys/dev/usb/wlan/if_rum.c	Tue Sep  6 12:00:16 2016	(r305473)
@@ -1205,7 +1205,7 @@ rum_bulk_read_callback(struct usb_xfer *
 			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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609061200.u86C0GXw015113>