qcacld-3.0: Check pointer before using it in lim_get_update_bw_allow

Should check update_allow firstly, then access it.

Change-Id: I1092530322b4f965f916956712f7260b4e0c3cdc
CRs-Fixed: 3354433
This commit is contained in:
Bing Sun
2022-12-07 09:02:00 +08:00
committed by Madan Koyyalamudi
parent 8955e45f7b
commit 6798fa21ee

View File

@@ -4881,12 +4881,12 @@ lim_get_update_bw_allow(struct pe_session *session,
enum wlan_phymode phy_mode;
QDF_STATUS status = QDF_STATUS_E_INVAL;
*update_allow = false;
if (!session || !update_allow) {
pe_err("invalid input");
return status;
}
*update_allow = false;
psoc = wlan_vdev_get_psoc(session->vdev);
if (!psoc) {
pe_err("psoc object invalid");