svn commit: r233077 - stable/9/sys/dev/iwi

Mitsuru IWASAKI iwasaki at FreeBSD.org
Sat Mar 17 06:48:14 UTC 2012


Author: iwasaki
Date: Sat Mar 17 06:48:13 2012
New Revision: 233077
URL: http://svn.freebsd.org/changeset/base/233077

Log:
  MFC r232785
  
  Fix wrong asresp frame parsing in iwi_checkforqos().

Modified:
  stable/9/sys/dev/iwi/if_iwi.c

Modified: stable/9/sys/dev/iwi/if_iwi.c
==============================================================================
--- stable/9/sys/dev/iwi/if_iwi.c	Sat Mar 17 05:45:21 2012	(r233076)
+++ stable/9/sys/dev/iwi/if_iwi.c	Sat Mar 17 06:48:13 2012	(r233077)
@@ -1357,8 +1357,8 @@ iwi_checkforqos(struct ieee80211vap *vap
 	frm += 2;
 
 	wme = NULL;
-	while (frm < efrm) {
-		IEEE80211_VERIFY_LENGTH(efrm - frm, frm[1], return);
+	while (efrm - frm > 1) {
+		IEEE80211_VERIFY_LENGTH(efrm - frm, frm[1] + 2, return);
 		switch (*frm) {
 		case IEEE80211_ELEMID_VENDOR:
 			if (iswmeoui(frm))


More information about the svn-src-stable-9 mailing list