wlan: Add protective check before dereference
Add protective check before pointer dereference.
Change-Id: I93075980ad0bcc8e7069b7413ec0c2bf5bea9abb
CRs-Fixed: 2203941
diff --git a/CORE/TL/src/wlan_qct_tl.c b/CORE/TL/src/wlan_qct_tl.c
index 6846f66..845a58d 100644
--- a/CORE/TL/src/wlan_qct_tl.c
+++ b/CORE/TL/src/wlan_qct_tl.c
@@ -14483,8 +14483,8 @@
WLANTL_CbType* pTLCb = NULL;
pTLCb = VOS_GET_TL_CB(pvosGCtx);
- pTLCb->pfnEapolFwd = pfnFwdEapol;
-
+ if (pTLCb)
+ pTLCb->pfnEapolFwd = pfnFwdEapol;
}
/**
diff --git a/CORE/TL/src/wlan_qct_tl_ba.c b/CORE/TL/src/wlan_qct_tl_ba.c
index 166e6d6..f65ed03 100644
--- a/CORE/TL/src/wlan_qct_tl_ba.c
+++ b/CORE/TL/src/wlan_qct_tl_ba.c
@@ -132,7 +132,7 @@
WDI_DS_RxMetaInfoType *pRxMetadata;
vos_pkt_t *pCurrent;
vos_pkt_t *pNext;
- v_S15_t seq;
+ v_S15_t seq = 0;
v_U32_t cIndex;
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */