Explorar el Código

qcacld-3.0: Allocate DP_TRACE buffer dynamically

Allocate memory for g_qdf_dp_trace_tbl buffer dynamically.

Change-Id: Id9c757fd700929528b8a047248aa942134f60160
CRs-Fixed: 2268787
Rachit Kankane hace 6 años
padre
commit
308073384d
Se han modificado 2 ficheros con 4 adiciones y 0 borrados
  1. 3 0
      core/hdd/src/wlan_hdd_main.c
  2. 1 0
      core/hdd/src/wlan_hdd_power.c

+ 3 - 0
core/hdd/src/wlan_hdd_main.c

@@ -6892,6 +6892,8 @@ static void hdd_wlan_exit(struct hdd_context *hdd_ctx)
 	unregister_reboot_notifier(&system_reboot_notifier);
 	unregister_netdevice_notifier(&hdd_netdev_notifier);
 
+	qdf_dp_trace_deinit();
+
 	hdd_wlan_stop_modules(hdd_ctx, false);
 
 	hdd_driver_memdump_deinit();
@@ -11059,6 +11061,7 @@ err_unregister_netdev:
 	unregister_netdevice_notifier(&hdd_netdev_notifier);
 
 err_wiphy_unregister:
+	qdf_dp_trace_deinit();
 	wiphy_unregister(hdd_ctx->wiphy);
 
 err_stop_modules:

+ 1 - 0
core/hdd/src/wlan_hdd_power.c

@@ -1417,6 +1417,7 @@ QDF_STATUS hdd_wlan_re_init(void)
 	goto success;
 
 err_re_init:
+	qdf_dp_trace_deinit();
 	/* Allow the phone to go to sleep */
 	hdd_allow_suspend(WIFI_POWER_EVENT_WAKELOCK_DRIVER_REINIT);
 	if (bug_on_reinit_failure)