qcacld-3.0: Validate intf_ch_freq before using it

Validate intf_ch_freq before dereferencing it

Change-Id: Ie30da1f85a77680a6eb4f40e5c6f18f5dddd3153
CRs-Fixed: 2669297
This commit is contained in:
Gururaj Pandurangi
2020-04-23 15:35:26 -07:00
committed by nshrivas
parent a1be470895
commit b638f6b5a6

View File

@@ -1381,6 +1381,7 @@ bool policy_mgr_is_sap_restart_required_after_sta_disconnect(
uint8_t num_cxn_del = 0;
QDF_STATUS status;
if (intf_ch_freq)
*intf_ch_freq = 0;
pm_ctx = policy_mgr_get_context(psoc);
if (!pm_ctx) {