qcacld-2.0: Resolve static analysis issues
prima to qcacld-2.0 propagation Resolved static analysis issues, variable initialization, return on failure, validate data before using. Change-Id: Ia6ffd422ae3f9bc8419f32aa914839a091841335 CRs-Fixed: 975049
This commit is contained in:
parent
3ab57a6c87
commit
f39a217534
|
@ -20815,7 +20815,8 @@ static int __wlan_hdd_cfg80211_tdls_oper(struct wiphy *wiphy,
|
|||
{
|
||||
VOS_STATUS status;
|
||||
unsigned long rc;
|
||||
tCsrTdlsLinkEstablishParams tdlsLinkEstablishParams;
|
||||
tCsrTdlsLinkEstablishParams tdlsLinkEstablishParams = { {0}, 0,
|
||||
0, 0, 0, 0, 0, 0, {0}, 0, {0} };
|
||||
pTdlsPeer = wlan_hdd_tdls_find_peer(pAdapter, peer, TRUE);
|
||||
|
||||
if (NULL == pTdlsPeer)
|
||||
|
|
|
@ -1182,6 +1182,7 @@ limProcessMlmAuthInd(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf)
|
|||
// Log error
|
||||
limLog(pMac, LOGP,
|
||||
FL("call to AllocateMemory failed for eWNI_SME_AUTH_IND"));
|
||||
return;
|
||||
}
|
||||
limCopyU16((tANI_U8 *) &pSirSmeAuthInd->messageType, eWNI_SME_AUTH_IND);
|
||||
limAuthIndSerDes(pMac, (tpLimMlmAuthInd) pMsgBuf,
|
||||
|
|
|
@ -3356,15 +3356,19 @@ sirFillBeaconMandatoryIEforEseBcnReport(tpAniSirGlobal pMac,
|
|||
retStatus = eSIR_FAILURE;
|
||||
goto err_bcnrep;
|
||||
}
|
||||
*pos = SIR_MAC_RATESET_EID;
|
||||
pos++;
|
||||
*pos = eseBcnReportMandatoryIe.supportedRates.numRates;
|
||||
pos++;
|
||||
vos_mem_copy(pos,
|
||||
if (eseBcnReportMandatoryIe.supportedRates.numRates <=
|
||||
SIR_MAC_RATESET_EID_MAX) {
|
||||
*pos = SIR_MAC_RATESET_EID;
|
||||
pos++;
|
||||
*pos = eseBcnReportMandatoryIe.supportedRates.numRates;
|
||||
pos++;
|
||||
vos_mem_copy(pos,
|
||||
(tANI_U8*)eseBcnReportMandatoryIe.supportedRates.rate,
|
||||
eseBcnReportMandatoryIe.supportedRates.numRates);
|
||||
pos += eseBcnReportMandatoryIe.supportedRates.numRates;
|
||||
freeBytes -= (1 + 1 + eseBcnReportMandatoryIe.supportedRates.numRates);
|
||||
pos += eseBcnReportMandatoryIe.supportedRates.numRates;
|
||||
freeBytes -= (1 + 1 +
|
||||
eseBcnReportMandatoryIe.supportedRates.numRates);
|
||||
}
|
||||
}
|
||||
|
||||
/* Fill FH Parameter set IE */
|
||||
|
|
Loading…
Reference in New Issue