Sfoglia il codice sorgente

qcacld-3.0: Lock leak in function policy_mgr_is_restart_sap_required

In case of failure policy_mgr_is_restart_sap_required
returns without releasing the lock. This leads to lock leak.

Fix is to release the lock before return in case of failure.

Change-Id: I032a6902de1bd0c8f87b660aac98a2fb08dd3f10
CRs-Fixed: 3269538
abhinav kumar 2 anni fa
parent
commit
4bc3ce90dd

+ 1 - 0
components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c

@@ -8406,6 +8406,7 @@ bool policy_mgr_is_restart_sap_required(struct wlan_objmgr_psoc *psoc,
 	}
 	if (i == MAX_NUMBER_OF_CONC_CONNECTIONS) {
 		policy_mgr_err("Invalid vdev id: %d", vdev_id);
+		qdf_mutex_release(&pm_ctx->qdf_conc_list_lock);
 		return false;
 	}
 	sta_sap_scc_on_dfs_chan =