commit | 7dee7fe7e047e89b242ea0ac7a30c104ef3529c4 | [log] [tgz] |
---|---|---|
author | Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org> | Mon Aug 05 15:55:19 2019 +0530 |
committer | nshrivas <nshrivas@codeaurora.org> | Thu Aug 08 14:22:33 2019 -0700 |
tree | f228b21c253e3effadd5ddc063e8a2a0a90a8b86 | |
parent | e67f4e465b7d265563b85b7ab00aa4a42b9764a5 [diff] |
qcacld-3.0: Avoid NULL pointer exception in HDD If firmware doesn't support 5GHz band then ieee80211_supported_band structure for HDD_NL80211_BAND_5GHZ is not allocated in wiphy and in wlan_hdd_update_ht_cap() trying to derefer member-fields of ieee80211_supported_band[HDD_NL80211_BAND_5GHZ] without NULL check is causing NULL pointer exception. To address this, add NULL check for 2GHz and 5GHz band pointers. Change-Id: I8aa93b9cbe26ce674563505e222f5cb2aa970051 CRs-Fixed: 2503133