summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYun Park <yunp@qca.qualcomm.com>2014-11-25 16:02:47 -0800
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2014-11-26 17:12:07 +0530
commit5cf799148a093606a9a12ece2785585083bc6862 (patch)
treef128fe82d97c46b253dedf2472fa15cb6f2c35d1
parent5774f2309d0ff23fa3155452f3bbffd32211f479 (diff)
qcacld: fix crash to check if IPA uC offload enabled when IPA is disabled
Add to check if HDD IPA struct is not NULL before check IPA uC offload enable/disable since HDD IPA strcut is not initialized when IPA is disabled Change-Id: Ib90768ed3169f82abceb69e8cdfbd080ff615d65 CRs-fixed: 762197
-rw-r--r--CORE/HDD/src/wlan_hdd_ipa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_ipa.c b/CORE/HDD/src/wlan_hdd_ipa.c
index 05848b490023..050e02a9e481 100644
--- a/CORE/HDD/src/wlan_hdd_ipa.c
+++ b/CORE/HDD/src/wlan_hdd_ipa.c
@@ -441,7 +441,7 @@ bool hdd_ipa_is_enabled(hdd_context_t *hdd_ctx)
static inline bool hdd_ipa_uc_is_enabled(struct hdd_ipa_priv *hdd_ipa)
{
#ifdef IPA_UC_OFFLOAD
- return hdd_ipa->hdd_ctx->cfg_ini->IpaUcOffloadEnabled;
+ return (hdd_ipa && hdd_ipa->hdd_ctx->cfg_ini->IpaUcOffloadEnabled);
#else
return false;
#endif /* IPA_UC_OFFLOAD */