Sfoglia il codice sorgente

qcacld-3.0: Fix vdev leak in csr_roam_issue_set_context_req_helper

In csr_roam_issue_set_context_req_helper, reference of vdev is not
released after get.

Change-Id: I686cd6a8dfd7e7889ef8e9ac3a4c6eb6be217f6e
CRs-Fixed: 2424885
Min Liu 6 anni fa
parent
commit
6de8633393
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      core/sme/src/csr/csr_api_roam.c

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

@@ -9999,6 +9999,9 @@ QDF_STATUS csr_roam_issue_set_context_req_helper(
 	if (cipher == WLAN_CRYPTO_CIPHER_FILS_AEAD)
 		csr_roam_store_fils_key(vdev, unicast, key_id, key_length,
 					key, bssid);
+
+	wlan_objmgr_vdev_release_ref(vdev, WLAN_LEGACY_MAC_ID);
+
 	return csr_roam_issue_set_context_req(mac_ctx, session_id, addkey,
 					      unicast, key_id);
 }