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
This commit is contained in:
Jianmin Zhu
2023-08-07 18:52:58 -07:00
committed by Rahul Choudhary
parent 4600b3afa8
commit 21d0365f24

View File

@@ -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: