qcacld-3.0: Avoid NULL pointer dereference
Function mlme_get_dynamic_oce_flags can return the NULL value. Avoid and check for NULL pointer in the callers. Change-Id: Idc83a9e5dea812a73fed24de3aa2c2c49436f7d1 CRs-Fixed: 2462716
Šī revīzija ir iekļauta:

revīziju iesūtīja
nshrivas

vecāks
cf8bedbc4f
revīzija
9ae5e2cd2f
@@ -1956,6 +1956,8 @@ static void wlan_mlme_send_oce_flags_fw(struct wlan_objmgr_pdev *pdev,
|
||||
|
||||
if (wlan_vdev_mlme_get_opmode(vdev) == QDF_STA_MODE) {
|
||||
dynamic_fw_value = mlme_get_dynamic_oce_flags(vdev);
|
||||
if (!dynamic_fw_value)
|
||||
return;
|
||||
if (*updated_fw_value == *dynamic_fw_value) {
|
||||
mlme_legacy_debug("Current FW flags matches with updated value.");
|
||||
return;
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user