Quellcode durchsuchen

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
Arun Kumar Khandavalli vor 5 Jahren
Ursprung
Commit
c36e48e3bc
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      target_if/mlme/psoc/src/target_if_psoc_timer_tx_ops.c

+ 1 - 0
target_if/mlme/psoc/src/target_if_psoc_timer_tx_ops.c

@@ -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;
 }