Jelajahi Sumber

qcacld-3.0: Fix WLAN_MLO_MGR_ID vdev ref leak

When Concurrency exists, cannot enter EMLSR mode,
policy_mgr_activate_mlo_links exit without releasing WLAN_MLO_MGR_ID vdev
ref.

Change-Id: I435f2cbfca1e5937165342420bb689520d286efa
CRs-Fixed: 3581218
Jianmin Zhu 1 tahun lalu
induk
melakukan
21d0365f24

+ 2 - 2
components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c

@@ -8178,7 +8178,7 @@ void policy_mgr_activate_mlo_links(struct wlan_objmgr_psoc *psoc,
 	if (active_vdev_cnt &&
 	    policy_mgr_is_emlsr_sta_concurrency_present(psoc)) {
 		policy_mgr_debug("Concurrency exists, cannot enter EMLSR mode");
-		goto done;
+		goto ref_release;
 	}
 
 	/*
@@ -8198,7 +8198,7 @@ void policy_mgr_activate_mlo_links(struct wlan_objmgr_psoc *psoc,
 					    MLO_LINK_FORCE_REASON_DISCONNECT,
 					    MLO_LINK_FORCE_MODE_ACTIVE,
 					    active_vdev_cnt, active_vdev_lst);
-
+ref_release:
 	for (idx = 0; idx < ml_vdev_cnt; idx++)
 		mlo_release_vdev_ref(tmp_vdev_lst[idx]);
 done: