qcacld-3.0: Add NULL check for pmo_psoc_ctx
This change is to add NULL check for pmo_psoc_ctx. Change-Id: I8e762fc344ce8ffba56b3fbb2f1b16c2215a0cc1 CRs-Fixed: 3776522
此提交包含在:

提交者
Ravindra Konda

父節點
3ffb15e2b9
當前提交
ab1073ae2d
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -739,6 +739,9 @@ ucfg_pmo_get_runtime_pm_delay(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct pmo_psoc_priv_obj *pmo_psoc_ctx = pmo_psoc_get_priv(psoc);
|
||||
|
||||
if (!pmo_psoc_ctx)
|
||||
return 0;
|
||||
|
||||
return pmo_psoc_ctx->psoc_cfg.runtime_pm_delay;
|
||||
}
|
||||
#endif /* FEATURE_RUNTIME_PM */
|
||||
|
新增問題並參考
封鎖使用者