Merge "qcacld-3.0: Avoid heap overflow during cfg80211 vendor scan request" into wlan-cld3.driver.lnx.2.0

This commit is contained in:
CNSS_WLAN Service 2017-11-20 15:32:02 -08:00 • committed by Gerrit - the friendly Code Review server
commit c2d77d04f3

View file

@ -921,9 +921,9 @@ static int __wlan_hdd_cfg80211_vendor_scan(struct wiphy *wiphy,
struct cfg80211_scan_request *request = NULL;
struct nlattr *attr;
enum nl80211_band band;
uint8_t n_channels = 0, n_ssid = 0, ie_len = 0;
uint8_t n_channels = 0, n_ssid = 0;
uint32_t tmp, count, j;
unsigned int len;
size_t len, ie_len;
struct ieee80211_channel *chan;
struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(wdev->netdev);