svn commit: r260513 - head/sys/dev/usb/wlan
Kevin Lo
kevlo at FreeBSD.org
Fri Jan 10 14:47:21 UTC 2014
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;
More information about the svn-src-all
mailing list