diff options
| author | Srinivas Girigowda <sgirigow@codeaurora.org> | 2016-08-17 18:51:01 -0700 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-10-12 20:31:49 -0700 |
| commit | 59ff755f86a98ad686890dd778266394c2aa306f (patch) | |
| tree | f416f2b793130ac8a9c2b2b7cfb85a088d11c097 | |
| parent | 41f0429860fb9c926cae647c0d132c962a7bcc63 (diff) | |
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
| -rw-r--r-- | core/sme/src/qos/sme_qos.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/sme/src/qos/sme_qos.c b/core/sme/src/qos/sme_qos.c index 5eaa248c031a..3ad7a41f372b 100644 --- a/core/sme/src/qos/sme_qos.c +++ b/core/sme/src/qos/sme_qos.c @@ -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 */ |
