summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivas Girigowda <sgirigow@qca.qualcomm.com>2014-09-04 18:52:51 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-09-08 18:27:48 -0700
commit435c495918ccf9795e71a13e4a8da4501e3019cd (patch)
treef77e0b05ff69a25c8d9cd9738bf30b391d70f826
parent776bd3e270a0740904df3bc5e54625538ce2b666 (diff)
qcacld: WMA: Fix issues reported by static analysis tool
Fix issues reported by static analysis tool Change-Id: I352b7a1340e87ce7afc557f92f28f7e344b7fd9e CRs-Fixed: 719857
-rw-r--r--CORE/SERVICES/WMA/wma.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c
index 4d3d72453750..d2fcdce5d649 100644
--- a/CORE/SERVICES/WMA/wma.c
+++ b/CORE/SERVICES/WMA/wma.c
@@ -16981,6 +16981,11 @@ int wma_enable_wow_in_fw(WMA_HANDLE handle)
#ifdef CONFIG_CNSS
tpAniSirGlobal pMac = (tpAniSirGlobal)vos_get_context(VOS_MODULE_ID_PE,
wma->vos_context);
+
+ if (NULL == pMac) {
+ WMA_LOGE("%s: Unable to get PE context", __func__);
+ return VOS_STATUS_E_FAILURE;
+ }
#endif
#ifdef FEATURE_WLAN_D0WOW
@@ -17984,6 +17989,10 @@ static VOS_STATUS wma_send_host_wakeup_ind_to_fw(tp_wma_handle wma)
#ifdef CONFIG_CNSS
tpAniSirGlobal pMac = (tpAniSirGlobal)vos_get_context(VOS_MODULE_ID_PE,
wma->vos_context);
+ if (NULL == pMac) {
+ WMA_LOGE("%s: Unable to get PE context", __func__);
+ return VOS_STATUS_E_FAILURE;
+ }
#endif
len = sizeof(wmi_wow_hostwakeup_from_sleep_cmd_fixed_param);