mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacmn: Do not take PSOC ref count during PSOC create notification
Do not take a common object ref count during common object create notification because until common object destroy notification is not received the ref count will not be released and in this case ref count will never be released becasue object destory notification will never come. takign ref coutn from object create notification will always lead to object leak. Change-Id: Iab7da602ef2d627866c3353b978eaa63749b62dd CRs-Fixed: 2252274
This commit is contained in:
parent
1239566fc1
commit
f0e1361efe
1 changed files with 2 additions and 8 deletions
|
|
@ -65,11 +65,8 @@ void wifi_pos_set_psoc(struct wlan_objmgr_psoc *psoc)
|
|||
|
||||
qdf_spin_lock_bh(&psoc_ptr_lock);
|
||||
tmp = wifi_pos_psoc_obj;
|
||||
if (!wifi_pos_psoc_obj) {
|
||||
if (!wifi_pos_psoc_obj)
|
||||
wifi_pos_psoc_obj = psoc;
|
||||
wlan_objmgr_psoc_get_ref(wifi_pos_psoc_obj,
|
||||
WLAN_WIFI_POS_CORE_ID);
|
||||
}
|
||||
qdf_spin_unlock_bh(&psoc_ptr_lock);
|
||||
|
||||
if (tmp)
|
||||
|
|
@ -82,11 +79,8 @@ void wifi_pos_clear_psoc(void)
|
|||
|
||||
qdf_spin_lock_bh(&psoc_ptr_lock);
|
||||
tmp = wifi_pos_psoc_obj;
|
||||
if (wifi_pos_psoc_obj) {
|
||||
wlan_objmgr_psoc_release_ref(wifi_pos_psoc_obj,
|
||||
WLAN_WIFI_POS_CORE_ID);
|
||||
if (wifi_pos_psoc_obj)
|
||||
wifi_pos_psoc_obj = NULL;
|
||||
}
|
||||
qdf_spin_unlock_bh(&psoc_ptr_lock);
|
||||
|
||||
if (!tmp)
|
||||
|
|
|
|||
Loading…
Reference in a new issue