summaryrefslogtreecommitdiff
path: root/CORE/SVC/src
diff options
context:
space:
mode:
authorMahesh A Saptasagar <c_msapta@qti.qualcomm.com>2016-02-17 12:08:31 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-02-19 13:23:34 +0530
commit09808da3e6a06c8704e0e9dfdcce54a84f94494f (patch)
tree38efeaca76bd4b0552c19e1ef9114b3f91a58b96 /CORE/SVC/src
parent2105ece5c00d79772568020f003192561a2f8016 (diff)
cld: Dont send logs to userspace until logging service is initialized
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
Diffstat (limited to 'CORE/SVC/src')
-rw-r--r--CORE/SVC/src/logging/wlan_logging_sock_svc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/CORE/SVC/src/logging/wlan_logging_sock_svc.c b/CORE/SVC/src/logging/wlan_logging_sock_svc.c
index a5e0db2fb9b3..11c395e3d116 100644
--- a/CORE/SVC/src/logging/wlan_logging_sock_svc.c
+++ b/CORE/SVC/src/logging/wlan_logging_sock_svc.c
@@ -348,7 +348,8 @@ int wlan_log_to_user(VOS_TRACE_LEVEL log_level, char *to_be_sent, int length)
struct rtc_time tm;
unsigned long local_time;
- if (!vos_is_multicast_logging()) {
+ if ((!vos_is_multicast_logging()) ||
+ (!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