From 64512bb563002bc46a364d3c4fd8e780e07e052d Mon Sep 17 00:00:00 2001 From: Komal Seelam Date: Mon, 16 Mar 2015 15:32:17 +0530 Subject: 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 --- CORE/MAC/src/pe/lim/limTimerUtils.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3