qcacld-3.0: Avoid dp_ops access during FTM mode on failure

During FTM mode start modules there is possibility  from recovery path
bus bw timer stop is being called before dp_ops gets initialized.
This will lead to accessing uninitialized dp_ops access, to avoid this
check for conn mode before accessing the dp_ops and skip timer stop.

Change-Id: I3aef52f70bc0ea6294c87e7cd889ec63a4a6e3a4
CRs-Fixed: 3531437
This commit is contained in:
Karthik Kantamneni
2023-06-12 17:32:42 +05:30
committed by Rahul Choudhary
父節點 8169b54f12
當前提交 e5110fabef

查看文件

@@ -2141,16 +2141,18 @@ void dp_bus_bw_compute_timer_try_start(struct wlan_objmgr_psoc *psoc)
static void __dp_bus_bw_compute_timer_stop(struct wlan_objmgr_psoc *psoc)
{
struct wlan_dp_psoc_context *dp_ctx = dp_psoc_get_priv(psoc);
hdd_cb_handle ctx = dp_ctx->dp_ops.callback_ctx;
hdd_cb_handle ctx;
ol_txrx_soc_handle soc = cds_get_context(QDF_MODULE_ID_SOC);
struct bbm_params param = {0};
bool is_any_adapter_conn =
dp_ctx->dp_ops.dp_any_adapter_connected(ctx);
bool is_any_adapter_conn;
if (QDF_GLOBAL_FTM_MODE == cds_get_conparam())
return;
ctx = dp_ctx->dp_ops.callback_ctx;
is_any_adapter_conn = dp_ctx->dp_ops.dp_any_adapter_connected(ctx);
if (!qdf_periodic_work_stop_sync(&dp_ctx->bus_bw_work))
goto exit;