Przeglądaj źródła

qcacld-3.0: Dont send logs to userspace until logging service is initialized

qcacld-2.0 to qcacld-3.0 propagation

Observed kernel panic due to the race between initialization of
logging wait_queue in supplicant thread context and the same
uninitialized wait_queue is referenced in MCThread context.
To mitigate this issue, don't send logs to upper layers if logging
service is not initialized.

Change-Id: I96e3efb3947279be64b83a27a7e2458d04021c4e
CRs-Fixed: 963275
(cherry picked from commit fe200c52491b12087752a46bc602288adaf26557)
Mahesh A Saptasagar 8 lat temu
rodzic
commit
5eb6c0f45a
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      core/utils/logging/src/wlan_logging_sock_svc.c

+ 2 - 1
core/utils/logging/src/wlan_logging_sock_svc.c

@@ -311,7 +311,8 @@ int wlan_log_to_user(QDF_TRACE_LEVEL log_level, char *to_be_sent, int length)
 
 	radio = cds_get_radio_index();
 
-	if (!cds_is_multicast_logging() || radio == -EINVAL) {
+	if (!cds_is_multicast_logging() || (radio == -EINVAL) ||
+		(!gwlan_logging.is_active)) {
 		/*
 		 * This is to make sure that we print the logs to kmsg console
 		 * when no logger app is running. This is also needed to