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:

committed by
Madan Koyyalamudi

parent
8955e45f7b
commit
6798fa21ee
@@ -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");
|
||||
|
Reference in New Issue
Block a user