qcacld-3.0: Validate session Id in sme_QosInternalReleaseReq
This is a qcacld-2.0 to qcacld-3.0 propagation. Validate session Id in sme_QosInternalReleaseReq. Change-Id: Id3ad752fe3e4c6f6fec18febb1c839003bef3df0 CRs-Fixed: 1013359
This commit is contained in:

committed by
qcabuildsw

父節點
41f0429860
當前提交
59ff755f86
@@ -2072,6 +2072,14 @@ sme_QosStatusType sme_qos_internal_release_req(tpAniSirGlobal pMac,
|
|||||||
flow_info = GET_BASE_ADDR(pEntry, sme_QosFlowInfoEntry, link);
|
flow_info = GET_BASE_ADDR(pEntry, sme_QosFlowInfoEntry, link);
|
||||||
ac = flow_info->ac_type;
|
ac = flow_info->ac_type;
|
||||||
sessionId = flow_info->sessionId;
|
sessionId = flow_info->sessionId;
|
||||||
|
|
||||||
|
if (!CSR_IS_SESSION_VALID(pMac, sessionId)) {
|
||||||
|
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR,
|
||||||
|
"%s: %d: Session Id: %d is invalid",
|
||||||
|
__func__, __LINE__, sessionId);
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
pSession = &sme_qos_cb.sessionInfo[sessionId];
|
pSession = &sme_qos_cb.sessionInfo[sessionId];
|
||||||
pACInfo = &pSession->ac_info[ac];
|
pACInfo = &pSession->ac_info[ac];
|
||||||
/* need to vote off powersave for the duration of this request */
|
/* need to vote off powersave for the duration of this request */
|
||||||
|
Reference in New Issue
Block a user