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
This commit is contained in:

committed by
nshrivas

parent
007291fb8d
commit
d7a34e4ce9
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user