diff options
| author | SaidiReddy Yenuga <saidir@codeaurora.org> | 2017-03-28 17:04:37 +0530 |
|---|---|---|
| committer | Sandeep Puligilla <spuligil@codeaurora.org> | 2017-04-04 03:26:23 -0700 |
| commit | b1f136d8de389292a14b34c346b4a97c3e8a8edd (patch) | |
| tree | ab02ec17098c22113a77a44eaf6e44d0b5a44af3 | |
| parent | 1ae28c7dbb514363b64d31d0972f260bb9d8a41d (diff) | |
qcacld-3.0: Validate NLA attr in bssid extscan hotlist API
NLA attribute QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM
used without validation.
validate NLA attribute.
CRs-Fixed: 2025669
Change-Id: I71f7452f0c7a1947326aefc2348b8f72b48f2895
| -rw-r--r-- | core/hdd/src/wlan_hdd_ext_scan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_ext_scan.c b/core/hdd/src/wlan_hdd_ext_scan.c index 5f93a11d71a5..8d2bc4319da2 100644 --- a/core/hdd/src/wlan_hdd_ext_scan.c +++ b/core/hdd/src/wlan_hdd_ext_scan.c @@ -1949,6 +1949,10 @@ __wlan_hdd_cfg80211_extscan_set_bssid_hotlist(struct wiphy *wiphy, hdd_debug("Lost ap sample size %d", pReqMsg->lost_ap_sample_size); + if (!tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM]) { + hdd_err("attr ap threshold failed"); + goto fail; + } i = 0; nla_for_each_nested(apTh, tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM], |
