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
This commit is contained in:

committed by
Ravindra Konda

parent
3ffb15e2b9
commit
ab1073ae2d
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
|
* 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
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* 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);
|
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;
|
return pmo_psoc_ctx->psoc_cfg.runtime_pm_delay;
|
||||||
}
|
}
|
||||||
#endif /* FEATURE_RUNTIME_PM */
|
#endif /* FEATURE_RUNTIME_PM */
|
||||||
|
Reference in New Issue
Block a user