Procházet zdrojové kódy

Merge "qcacmn: Release peer ref after peer pointer usage"

Linux Build Service Account před 7 roky
rodič
revize
4f263a9a19

+ 1 - 1
umac/cmn_services/crypto/src/wlan_crypto_global_api.c

@@ -793,8 +793,8 @@ QDF_STATUS wlan_crypto_getkey(struct wlan_objmgr_vdev *vdev,
 				"%s[%d] peer NULL\n", __func__, __LINE__);
 			return QDF_STATUS_E_NOENT;
 		}
-		wlan_objmgr_peer_release_ref(peer, WLAN_CRYPTO_ID);
 		key = wlan_crypto_peer_getkey(peer, req_key->keyix);
+		wlan_objmgr_peer_release_ref(peer, WLAN_CRYPTO_ID);
 		if (!key)
 			return QDF_STATUS_E_INVAL;
 	}