qcacld-3.0: Fix race condition between WMI control RX and driver unload
This is a qcacld-2.0 to qcacld-3.0 propagation
Don’t unregister the event in LIM cleanup since it will be take care
by WMI service close. Also in tlshim_mgmt_rx_wmi_handler, add driver
load/unload check to avoid processing any WMI_MGMT_RX_EVENTID event
even the handler is not NULL
Change-Id: I72b53b614218f26e874c964a0d8b0affba6cda79
CRs-Fixed: 904490
diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c
index c6f0b3a..8544fa4 100644
--- a/core/wma/src/wma_mgmt.c
+++ b/core/wma/src/wma_mgmt.c
@@ -3049,6 +3049,11 @@
return -ENOMEM;
}
+ if (cds_is_load_unload_in_progress()) {
+ WMA_LOGE("Load/Unload in progress");
+ return -EINVAL;
+ }
+
cdf_mem_zero(rx_pkt, sizeof(*rx_pkt));
/*