diff options
| author | Komal Seelam <kseelam@qti.qualcomm.com> | 2015-03-16 15:32:17 +0530 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-05-13 17:17:31 +0530 |
| commit | 64512bb563002bc46a364d3c4fd8e780e07e052d (patch) | |
| tree | fa23856af09d2c8171f4ff38dd5ef87aa83c8dba | |
| parent | e8e718c11ee9393ec2971e8e8e5f03eda5054b30 (diff) | |
qcacld-2.0: LIM: check add to null check dereference
prima to qcacld-2.0 propagation.
Add code to check null dereference check.
Change-Id: I2c9f799dc62757703c96555e8ab01c1ebc1c7778
CRs-Fixed: 808204
| -rw-r--r-- | CORE/MAC/src/pe/lim/limTimerUtils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CORE/MAC/src/pe/lim/limTimerUtils.c b/CORE/MAC/src/pe/lim/limTimerUtils.c index 59ee8d4a4535..d076f6e5d564 100644 --- a/CORE/MAC/src/pe/lim/limTimerUtils.c +++ b/CORE/MAC/src/pe/lim/limTimerUtils.c @@ -1652,6 +1652,12 @@ limHeartBeatDeactivateAndChangeTimer(tpAniSirGlobal pMac, tpPESession psessionEn { tANI_U32 val, val1; + if (NULL == psessionEntry) { + limLog(pMac, LOGE, FL("%s: received session id NULL." + " Heartbeat timer config failed"), __func__); + return; + } + MTRACE(macTrace(pMac, TRACE_CODE_TIMER_DEACTIVATE, psessionEntry->peSessionId, eLIM_HEART_BEAT_TIMER)); #ifdef WLAN_ACTIVEMODE_OFFLOAD_FEATURE if(IS_ACTIVEMODE_OFFLOAD_FEATURE_ENABLE) |
