qcacmn: Set the default value of vdev rsp_timer_inuse to 1
In the qdf infrastructure the default value used during the atomic variable initialization is 0, during the flushing of the vdev response timer during the SSR vdev rsp_timer_inuse is read to understand whether the timer is initialized or not. Since the default value is 0 the vdev response timer is not flushed resulting in different memory leaks. To resolve this issue, increment the rsp_timer_inuse value to 1 during the vdev response time initialization. Change-Id: Ibe47d1175f19b4c62cd5a18cda8b56370b58128a CRs-Fixed: 2642476
This commit is contained in:

committed by
nshrivas

vanhempi
9b0c1271ed
commit
c36e48e3bc
@@ -95,6 +95,7 @@ QDF_STATUS target_if_psoc_vdev_rsp_timer_init(struct wlan_objmgr_psoc *psoc,
|
||||
target_if_vdev_mgr_rsp_timer_mgmt_cb,
|
||||
vdev_rsp, QDF_TIMER_TYPE_WAKE_APPS);
|
||||
qdf_atomic_init(&vdev_rsp->rsp_timer_inuse);
|
||||
qdf_atomic_inc(&vdev_rsp->rsp_timer_inuse);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
Viittaa uudesa ongelmassa
Block a user