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:

committed by
nshrivas

parent
a1be470895
commit
b638f6b5a6
@@ -1381,7 +1381,8 @@ bool policy_mgr_is_sap_restart_required_after_sta_disconnect(
|
|||||||
uint8_t num_cxn_del = 0;
|
uint8_t num_cxn_del = 0;
|
||||||
QDF_STATUS status;
|
QDF_STATUS status;
|
||||||
|
|
||||||
*intf_ch_freq = 0;
|
if (intf_ch_freq)
|
||||||
|
*intf_ch_freq = 0;
|
||||||
pm_ctx = policy_mgr_get_context(psoc);
|
pm_ctx = policy_mgr_get_context(psoc);
|
||||||
if (!pm_ctx) {
|
if (!pm_ctx) {
|
||||||
policy_mgr_err("Invalid pm context");
|
policy_mgr_err("Invalid pm context");
|
||||||
|
Reference in New Issue
Block a user