qcacld-3.0: Check for NULL before accessing dp_ctx or DP soc
Check for NULL before accessing dp_ctx or DP SOC in __dp_bus_bw_compute_timer_stop(). Change-Id: I0d2862c4688f83c3d5f561baaa6ce62e96cca9c3 CRs-Fixed: 3659080
This commit is contained in:

committed by
Ravindra Konda

parent
09ef6eecdd
commit
836a18a866
@@ -2177,6 +2177,9 @@ static void __dp_bus_bw_compute_timer_stop(struct wlan_objmgr_psoc *psoc)
|
||||
if (QDF_GLOBAL_FTM_MODE == cds_get_conparam())
|
||||
return;
|
||||
|
||||
if (!dp_ctx || !soc)
|
||||
return;
|
||||
|
||||
ctx = dp_ctx->dp_ops.callback_ctx;
|
||||
is_any_adapter_conn = dp_ctx->dp_ops.dp_any_adapter_connected(ctx);
|
||||
|
||||
|
Reference in New Issue
Block a user