Pārlūkot izejas kodu

qcacld-3.0: Free memory allocated for WMI_SERVICE_READY_EVENTID

Free memory allocated for WMI_SERVICE_READY_EVENTID in wma_close.

Change-Id: I1788fdbcdda9488ef8ad9fe511a7f1b06e250159
CRs-Fixed: 2381818
hangtian 6 gadi atpakaļ
vecāks
revīzija
351b7c9b7b
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      core/wma/src/wma_main.c

+ 4 - 0
core/wma/src/wma_main.c

@@ -93,6 +93,7 @@
 #include "wlan_mlme_api.h"
 #include "wlan_mlme_ucfg_api.h"
 #include "cfg_ucfg_api.h"
+#include "init_cmd_api.h"
 
 #define WMA_LOG_COMPLETION_TIMER 3000 /* 3 seconds */
 #define WMI_TLV_HEADROOM 128
@@ -4744,6 +4745,7 @@ QDF_STATUS wma_wmi_work_close(void)
 QDF_STATUS wma_close(void)
 {
 	tp_wma_handle wma_handle;
+	struct target_psoc_info *tgt_psoc_info;
 	QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;
 
 	WMA_LOGD("%s: Enter", __func__);
@@ -4826,6 +4828,8 @@ QDF_STATUS wma_close(void)
 	pmo_unregister_pause_bitmap_notifier(wma_handle->psoc);
 	pmo_unregister_get_vdev_dp_handle(wma_handle->psoc);
 
+	tgt_psoc_info = wlan_psoc_get_tgt_if_handle(wma_handle->psoc);
+	init_deinit_free_num_units(wma_handle->psoc, tgt_psoc_info);
 	target_if_free_psoc_tgt_info(wma_handle->psoc);
 
 	wlan_objmgr_psoc_release_ref(wma_handle->psoc, WLAN_LEGACY_WMA_ID);