prima: Mutex lock is not released by wlan_logging_thread
While unloading driver, wlan_logging_thread never release
param_lock by waiting for logging sock deactivation.
Instead of complete_and_exit() API use complete() API to
complete shutdown_comp which releases the mutex lock.
Change-Id: Id5ccc5dbcfe42646452d6b4736d821f6d64ca5b7
CRs-Fixed: 2306246
diff --git a/CORE/SVC/src/logging/wlan_logging_sock_svc.c b/CORE/SVC/src/logging/wlan_logging_sock_svc.c
index 246a847..33aa94c 100644
--- a/CORE/SVC/src/logging/wlan_logging_sock_svc.c
+++ b/CORE/SVC/src/logging/wlan_logging_sock_svc.c
@@ -1329,7 +1329,8 @@
}
}
- complete_and_exit(&gwlan_logging.shutdown_comp, 0);
+ complete(&gwlan_logging.shutdown_comp);
+ do_exit(0);
return 0;
}
@@ -1645,6 +1646,7 @@
gapp_pid = INVALID_PID;
INIT_COMPLETION(gwlan_logging.shutdown_comp);
+ wmb();
gwlan_logging.exit = true;
gwlan_logging.is_active = false;
vos_set_multicast_logging(0);