mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
qcacld-3.0: Validate mlme_obj in wlan_mlme_update_oce_flags
Add sanity check for mlme_obj in wlan_mlme_update_oce_flags to avoid illegal memory access when mlme_obj is not valid. Change-Id: I7dfd72cc704d3f9c11241fb2217f0b2ab7eda3d3 CRs-Fixed: 2669262
This commit is contained in:
parent
c87ebb5ca3
commit
a1be470895
1 changed files with 3 additions and 0 deletions
|
|
@ -2111,6 +2111,9 @@ void wlan_mlme_update_oce_flags(struct wlan_objmgr_pdev *pdev)
|
|||
wlan_util_get_peer_count_for_mode(pdev, QDF_P2P_GO_MODE);
|
||||
mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
||||
|
||||
if (!mlme_obj)
|
||||
return;
|
||||
|
||||
if (sap_connected_peer || go_connected_peer) {
|
||||
updated_fw_value = mlme_obj->cfg.oce.feature_bitmap;
|
||||
updated_fw_value &=
|
||||
|
|
|
|||
Loading…
Reference in a new issue