aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/scan.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index 5e0983d60428..02a238329c83 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -1293,15 +1293,10 @@ ieee80211_bss(struct wiphy *wiphy, struct iw_request_info *info,
1293 1293
1294 rcu_read_lock(); 1294 rcu_read_lock();
1295 ies = rcu_dereference(bss->pub.ies); 1295 ies = rcu_dereference(bss->pub.ies);
1296 if (ies) { 1296 rem = ies->len;
1297 rem = ies->len; 1297 ie = ies->data;
1298 ie = ies->data;
1299 } else {
1300 rem = 0;
1301 ie = NULL;
1302 }
1303 1298
1304 while (ies && rem >= 2) { 1299 while (rem >= 2) {
1305 /* invalid data */ 1300 /* invalid data */
1306 if (ie[1] > rem - 2) 1301 if (ie[1] > rem - 2)
1307 break; 1302 break;