Răsfoiți Sursa

qcacmn: Fix wrongly used wmi hang data event/cmd log buffer

WMI cmd and event use different log buffer, when trace the hang
data, proper wmi buffer should be used according to API's parameter.

Change-Id: Ic87482e92600b2bb579347447388a791dc2ca563
CRs-Fixed: 2847223
Kai Liu 4 ani în urmă
părinte
comite
d7c8cf6738
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      wmi/src/wmi_hang_event.c

+ 2 - 2
wmi/src/wmi_hang_event.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -53,7 +53,7 @@ static void wmi_log_history(struct notifier_block *block, void *data,
 	if (!wmi_handle)
 		return;
 
-	if (wmi_history)
+	if (wmi_history == WMI_EVT_HIST)
 		wmi_log = &wmi_handle->log_info.wmi_event_log_buf_info;
 	else
 		wmi_log = &wmi_handle->log_info.wmi_command_log_buf_info;