diff options
| author | Srinivas Girigowda <sgirigow@qca.qualcomm.com> | 2016-05-09 19:07:14 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-05-10 03:49:49 -0700 |
| commit | e2ec79435dd25e31bc2e567f417228968a769f75 (patch) | |
| tree | edd9429c2e8f9aae2ff12e93959f23b897b5a8eb | |
| parent | 400f8fc5b51fb35e0719c1d956fbef8a12cf835f (diff) | |
qcacld-2.0: Validate session Id in sme_QosInternalReleaseReq
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 b45f62b3e5ae..0d3e783cbddf 100644 --- a/CORE/SME/src/QoS/sme_Qos.c +++ b/CORE/SME/src/QoS/sme_Qos.c @@ -2315,11 +2315,19 @@ sme_QosStatusType sme_QosInternalReleaseReq(tpAniSirGlobal pMac, v_BOOL_t uplinkFlowsPresent = VOS_FALSE; v_BOOL_t downlinkFlowsPresent = VOS_FALSE; tListElem *pResult= NULL; + VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_INFO_HIGH, "%s: %d: invoked for flow %d", __func__, __LINE__, QosFlowID); + if (!CSR_IS_SESSION_VALID(pMac, sessionId)) { + VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_ERROR, + "%s: %d: Session Id:%d is invalid", + __func__, __LINE__, sessionId); + return status; + } + vos_mem_zero(&search_key, sizeof(sme_QosSearchInfo)); //set the key type & the key to be searched in the Flow List search_key.key.QosFlowID = QosFlowID; |
