mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
qcacld-2.0: Fix double memory allocation of encrAuthFrame
The commit "qcacld-2.0: Fix incorrect length of encrypted auth frame" is already allocating and setting memory for encrAuthFrame. Don't allocate and set the memory twice. Change-Id: Id5c30d4213b9e41040bca303d42f990b0a9932c9
This commit is contained in:
parent
e468a98c08
commit
448463a947
1 changed files with 0 additions and 7 deletions
|
@ -231,12 +231,6 @@ limProcessAuthFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo, tpPESession pse
|
|||
goto free;
|
||||
}
|
||||
|
||||
encrAuthFrame = vos_mem_malloc(LIM_ENCR_AUTH_BODY_LEN);
|
||||
if (!encrAuthFrame) {
|
||||
limLog(pMac, LOGE, FL("failed to allocate memory"));
|
||||
goto free;
|
||||
}
|
||||
|
||||
plainBody = vos_mem_malloc(LIM_ENCR_AUTH_BODY_LEN);
|
||||
if (!plainBody) {
|
||||
limLog(pMac, LOGE, FL("failed to allocate memory"));
|
||||
|
@ -251,7 +245,6 @@ limProcessAuthFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo, tpPESession pse
|
|||
|
||||
vos_mem_set(rxAuthFrame, sizeof(tSirMacAuthFrameBody), 0);
|
||||
vos_mem_set(authFrame, sizeof(tSirMacAuthFrameBody), 0);
|
||||
vos_mem_set(encrAuthFrame, LIM_ENCR_AUTH_BODY_LEN, 0);
|
||||
vos_mem_set(plainBody, LIM_ENCR_AUTH_BODY_LEN, 0);
|
||||
vos_mem_set(challengeTextArray, SIR_MAC_AUTH_CHALLENGE_LENGTH, 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue