qcacld-3.0: Fix uninitialized heap and stack usage

qcacld-2.0 to qcacld-3.0 propagation

Fix uninitialized stack use in csrRoamReadTSF by initializing
variable of struct type tCsrNeighborRoamBSSInfo to zero.

Git-commit: d39cf92e69222e03f89238313f5b8c100ecd4ecc
Change-Id: I4211b41b5e30d414e45691a5bab4048587cc8499
CRs-Fixed: 1018486
This commit is contained in:
Selvaraj, Sridhar
2016-07-31 15:17:45 +05:30
committed by Gerrit - the friendly Code Review server
parent c3ba2aacba
commit 258594ca59

View File

@@ -1822,7 +1822,7 @@ QDF_STATUS csr_roam_read_tsf(tpAniSirGlobal pMac, uint8_t *pTimestamp,
uint8_t sessionId)
{
QDF_STATUS status = QDF_STATUS_SUCCESS;
tCsrNeighborRoamBSSInfo handoffNode;
tCsrNeighborRoamBSSInfo handoffNode = {{0} };
uint32_t timer_diff = 0;
uint32_t timeStamp[2];
tpSirBssDescription pBssDescription = NULL;