|
@@ -690,9 +690,11 @@ static void ieee80211_sta_send_associnfo(struct ieee80211_sub_if_data *sdata,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- memset(&wrqu, 0, sizeof(wrqu));
|
|
|
|
- wrqu.data.length = len;
|
|
|
|
- wireless_send_event(dev, IWEVCUSTOM, &wrqu, buf);
|
|
|
|
|
|
+ if (len <= IW_CUSTOM_MAX) {
|
|
|
|
+ memset(&wrqu, 0, sizeof(wrqu));
|
|
|
|
+ wrqu.data.length = len;
|
|
|
|
+ wireless_send_event(sdata->dev, IWEVCUSTOM, &wrqu, buf);
|
|
|
|
+ }
|
|
|
|
|
|
kfree(buf);
|
|
kfree(buf);
|
|
}
|
|
}
|