mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
qcacld-3.0: Fix null pointer dereference in csr_update_pmk_cache_ft()
In csr_update_pmk_cache_ft(), the value of the argument pmk_cache could be received as NULL. pmk_cache is deferenced without validation. Validate pmk_cache before dereferencing. Change-Id: I255ce55d07a112c2aa742535c54b71fadea3e7e7 CRs-Fixed: 3023221
This commit is contained in:
parent
7c68e03779
commit
164aaa90de
1 changed files with 2 additions and 1 deletions
|
|
@ -14125,7 +14125,8 @@ void csr_update_pmk_cache_ft(struct mac_context *mac, uint32_t vdev_id,
|
|||
(scan_res->BssDescriptor.mdie[1] << 8));
|
||||
sme_debug("Scan_res MDID:0x%x copied to PMKSA",
|
||||
pmksa.mdid.mobility_domain);
|
||||
qdf_copy_macaddr(&pmksa.bssid, &pmk_cache->BSSID);
|
||||
if (pmk_cache)
|
||||
qdf_copy_macaddr(&pmksa.bssid, &pmk_cache->BSSID);
|
||||
|
||||
status = wlan_crypto_update_pmk_cache_ft(vdev, &pmksa);
|
||||
if (QDF_IS_STATUS_ERROR(status))
|
||||
|
|
|
|||
Loading…
Reference in a new issue