wlan: memory corruption fix
During unload WLAN driver, MSG Q flushing routine will free memory
which is not dynamically allocated.
Then memory area corruption happpen, and when next load driver,
corrupted memory will be allocated, as a result system crash happen.
Not to free static memory location, MSG body for MC thread WDI Q
will not be freed, and will print message type which made problem.
Change-Id: Ib6797be3ddc60a3734c3608963f3fdedb2631bea
CRs-fixed: 589882
diff --git a/CORE/WDI/CP/src/wlan_qct_wdi.c b/CORE/WDI/CP/src/wlan_qct_wdi.c
index aa56076..5bebc56 100644
--- a/CORE/WDI/CP/src/wlan_qct_wdi.c
+++ b/CORE/WDI/CP/src/wlan_qct_wdi.c
@@ -21706,6 +21706,7 @@
/*Save the global state as we need it on the other side*/
palMsg->val = pWDICtx->uGlobalState;
+ palMsg->type = 0;
/*Transition back to BUSY as we need to handle a queued request*/
WDI_STATE_TRANSITION( pWDICtx, WDI_BUSY_ST);