Browse Source

qcacld-3.0: Handle failure scenarios for NSS update request

Release the NSS update request from the serialization active
command list in case the request fails.

Change-Id: Id6bfee6f510132bacdc69773c8aba90be43aa813
CRs-Fixed: 2112932
Varun Reddy Yeturu 7 years ago
parent
commit
84c497b930
1 changed files with 3 additions and 4 deletions
  1. 3 4
      core/sme/src/csr/csr_api_roam.c

+ 3 - 4
core/sme/src/csr/csr_api_roam.c

@@ -20489,13 +20489,12 @@ void csr_process_nss_update_req(tpAniSirGlobal mac, tSmeCmd *command)
 
 	if (!command) {
 		sme_err("nss update param is NULL");
-		return;
+		goto fail;
 	}
 
 	if (!CSR_IS_SESSION_VALID(mac, command->sessionId)) {
-		sme_err("Invalid session id %d",
-			command->sessionId);
-		return;
+		sme_err("Invalid session id %d", command->sessionId);
+		goto fail;
 	}
 	session = CSR_GET_SESSION(mac, command->sessionId);