qcacld-3.0: Do mem_init before calling qdf_spinlock_create
Doing mem_init first allows other qdf_features to allocate
memory for profiling and tracking using the qdf_mem_alloc
apis.
Change-Id: Id4f830a83a745763058ff2f05138b80558fe1d1f
CRs-Fixed: 1100552
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index f61df5a..edc489a 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -9261,10 +9261,10 @@
v_CONTEXT_t p_cds_context = NULL;
int ret = 0;
+ p_cds_context = cds_init();
#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
wlan_logging_sock_init_svc();
#endif
- p_cds_context = cds_init();
if (p_cds_context == NULL) {
hdd_alert("Failed to allocate CDS context");