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
此提交包含在:
Shashank Reddy Vulupala
2024-03-18 17:51:22 +05:30
提交者 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 */