mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
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:
parent
41f0429860
commit
59ff755f86
1 changed files with 8 additions and 0 deletions
|
|
@ -2072,6 +2072,14 @@ sme_QosStatusType sme_qos_internal_release_req(tpAniSirGlobal pMac,
|
|||
flow_info = GET_BASE_ADDR(pEntry, sme_QosFlowInfoEntry, link);
|
||||
ac = flow_info->ac_type;
|
||||
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];
|
||||
pACInfo = &pSession->ac_info[ac];
|
||||
/* need to vote off powersave for the duration of this request */
|
||||
|
|
|
|||
Loading…
Reference in a new issue