Quellcode durchsuchen

qcacld-3.0: Release lock in error condition

Release lock when psoc_mc_stats is NULL in
ucfg_mc_cp_stats_inc_wake_lock_stats API.

Change-Id: Ibf316d848b2e1d0a4189eb4cebac27922ce30dcd
CRs-Fixed: 2702093
Utkarsh Bhatnagar vor 4 Jahren
Ursprung
Commit
d7a34e4ce9
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      components/cp_stats/dispatcher/src/wlan_cp_stats_mc_ucfg_api.c

+ 1 - 0
components/cp_stats/dispatcher/src/wlan_cp_stats_mc_ucfg_api.c

@@ -245,6 +245,7 @@ QDF_STATUS ucfg_mc_cp_stats_inc_wake_lock_stats(struct wlan_objmgr_psoc *psoc,
 
 	if (!psoc_mc_stats) {
 		cp_stats_err("psoc mc stats is null");
+		wlan_cp_stats_psoc_obj_unlock(psoc_cp_stats_priv);
 		return QDF_STATUS_E_NULL_VALUE;
 	}