wlan: Fix uninitialized variable access
In WDI_ProcessSetAllowedActionFramesInd, driver use variable
usLen without initialization during allocation of message
buffer. This can result in usage of uninitialized variable.
Initialize usLen before usage to fix this issue.
Change-Id: I5e782b5ef5e726845fda978b03afeb5c2ded49fd
CRs-Fixed: 2195838
diff --git a/CORE/WDI/CP/src/wlan_qct_wdi.c b/CORE/WDI/CP/src/wlan_qct_wdi.c
index 3a57b30..6e5069f 100644
--- a/CORE/WDI/CP/src/wlan_qct_wdi.c
+++ b/CORE/WDI/CP/src/wlan_qct_wdi.c
@@ -38974,6 +38974,10 @@
WDI_ASSERT(0);
return WDI_STATUS_E_FAILURE;
}
+ /*-----------------------------------------------------------------------
+ Get message buffer
+ -----------------------------------------------------------------------*/
+ usLen = sizeof(tHalAllowedActionFrames);
if ((WDI_STATUS_SUCCESS != WDI_GetMessageBuffer(pWDICtx,
WDI_SET_ALLOWED_ACTION_FRAMES_IND,