qcacld-3.0: Resolve static analysis issues
qcacld-2.0 to qcacld-3.0 propagation Resolved static analysis issues, variable initialization, return on failure, validate data before using. Change-Id: Ia6ffd422ae3f9bc8419f32aa914839a091841335 CRs-Fixed: 975049 (cherry picked from commit 3284a163a31f49bfd7f2b0f2319ee30c3710ee64)
This commit is contained in:

committed by
qcabuildsw

parent
c5734186b5
commit
1891fe4e6a
@@ -4387,7 +4387,8 @@ static int __wlan_hdd_cfg80211_tdls_oper(struct wiphy *wiphy,
|
|||||||
{
|
{
|
||||||
QDF_STATUS status;
|
QDF_STATUS status;
|
||||||
unsigned long rc;
|
unsigned long rc;
|
||||||
tCsrTdlsLinkEstablishParams tdlsLinkEstablishParams;
|
tCsrTdlsLinkEstablishParams tdlsLinkEstablishParams = { {0}, 0,
|
||||||
|
0, 0, 0, 0, 0, {0}, 0, {0} };
|
||||||
|
|
||||||
pTdlsPeer =
|
pTdlsPeer =
|
||||||
wlan_hdd_tdls_find_peer(pAdapter, peer, true);
|
wlan_hdd_tdls_find_peer(pAdapter, peer, true);
|
||||||
|
@@ -3268,17 +3268,21 @@ sir_beacon_ie_ese_bcn_report(tpAniSirGlobal pMac,
|
|||||||
retStatus = eSIR_FAILURE;
|
retStatus = eSIR_FAILURE;
|
||||||
goto err_bcnrep;
|
goto err_bcnrep;
|
||||||
}
|
}
|
||||||
*pos = SIR_MAC_RATESET_EID;
|
if (eseBcnReportMandatoryIe.supportedRates.numRates <=
|
||||||
pos++;
|
SIR_MAC_RATESET_EID_MAX) {
|
||||||
*pos = eseBcnReportMandatoryIe.supportedRates.numRates;
|
*pos = SIR_MAC_RATESET_EID;
|
||||||
pos++;
|
pos++;
|
||||||
qdf_mem_copy(pos,
|
*pos = eseBcnReportMandatoryIe.supportedRates.numRates;
|
||||||
|
pos++;
|
||||||
|
qdf_mem_copy(pos,
|
||||||
(uint8_t *) eseBcnReportMandatoryIe.supportedRates.
|
(uint8_t *) eseBcnReportMandatoryIe.supportedRates.
|
||||||
rate,
|
rate,
|
||||||
eseBcnReportMandatoryIe.supportedRates.numRates);
|
eseBcnReportMandatoryIe.supportedRates.numRates);
|
||||||
pos += eseBcnReportMandatoryIe.supportedRates.numRates;
|
pos += eseBcnReportMandatoryIe.supportedRates.numRates;
|
||||||
freeBytes -=
|
freeBytes -=
|
||||||
(1 + 1 + eseBcnReportMandatoryIe.supportedRates.numRates);
|
(1 + 1 +
|
||||||
|
eseBcnReportMandatoryIe.supportedRates.numRates);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fill FH Parameter set IE */
|
/* Fill FH Parameter set IE */
|
||||||
|
Reference in New Issue
Block a user