wlan: Address timer leaks due to 64 bit compatibility issues
On driver unload the timers created are destroyed if "wdaTimersCreated"
is set to TRUE. The pointer operations on variable "VosPacketToFree"
by type casting it to pointer of type uintptr_t corrupts "wdaTimersCreated"
variable results in timer leak.
To mitigate this issue change the data type of variable "VosPacketToFree"
from v_U32_t to uintptr_t.
Change-Id: I37861b706895aa3d8b22cbfca7dacbe1a8a5eb80
CRs-Fixed: 758122
diff --git a/CORE/WDA/inc/wlan_qct_wda.h b/CORE/WDA/inc/wlan_qct_wda.h
index 9abea4b..5f3a8cb 100644
--- a/CORE/WDA/inc/wlan_qct_wda.h
+++ b/CORE/WDA/inc/wlan_qct_wda.h
@@ -488,10 +488,10 @@
tSirLinkState linkState;
/* set, when BT AMP session is going on */
v_BOOL_t wdaAmpSessionOn;
- v_U32_t VosPacketToFree;
v_BOOL_t needShutdown;
v_BOOL_t wdiFailed;
v_BOOL_t wdaTimersCreated;
+ uintptr_t VosPacketToFree;
/* Event to wait for WDA stop on FTM mode */
vos_event_t ftmStopDoneEvent;