Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2014 14:47:20 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r260513 - head/sys/dev/usb/wlan
Message-ID:  <201401101447.s0AElKFT043839@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Fri Jan 10 14:47:20 2014
New Revision: 260513
URL: http://svnweb.freebsd.org/changeset/base/260513

Log:
  Use m_get2() instead of m_getcl().
  
  Spotted by:	glebius

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

Modified: head/sys/dev/usb/wlan/if_rsu.c
==============================================================================
--- head/sys/dev/usb/wlan/if_rsu.c	Fri Jan 10 13:08:21 2014	(r260512)
+++ head/sys/dev/usb/wlan/if_rsu.c	Fri Jan 10 14:47:20 2014	(r260513)
@@ -1145,7 +1145,7 @@ rsu_event_survey(struct rsu_softc *sc, u
 	pktlen = sizeof(*wh) + le32toh(bss->ieslen);
 	if (__predict_false(pktlen > MCLBYTES))
 		return;
-	m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
+	m = m_get2(pktlen, M_NOWAIT, MT_DATA, M_PKTHDR);
 	if (__predict_false(m == NULL))
 		return;
 	wh = mtod(m, struct ieee80211_frame *);
@@ -1351,7 +1351,7 @@ rsu_rx_frame(struct rsu_softc *sc, uint8
 	DPRINTFN(5, "Rx frame len=%d rate=%d infosz=%d rssi=%d\n",
 	    pktlen, rate, infosz, *rssi);
 
-	m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
+	m = m_get2(pktlen, M_NOWAIT, MT_DATA, M_PKTHDR);
 	if (__predict_false(m == NULL)) {
 		ifp->if_ierrors++;
 		return NULL;



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