qcacld-2.0: Initialize preauth node

Initialize preauth node memory after allocated to
avoid invalid content being used in protocol stack.

Change-Id: Id66fee1bd3684aff2d94108c2b864e3f458fe7c0
CRs-Fixed: 2701488
This commit is contained in:
Liangwei Dong 2020-06-02 13:48:11 +08:00 committed by syphyr
parent 533391cc59
commit bff1475ac2
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011-2016 The Linux Foundation. All rights reserved.
* Copyright (c) 2011-2016, 2019-2020 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@ -600,6 +600,8 @@ limCreateTimers(tpAniSirGlobal pMac)
limLog(pMac, LOGP, FL("AllocateMemory failed!"));
goto err_timer;
}
vos_mem_zero(pMac->lim.gLimPreAuthTimerTable.pTable[i],
sizeof(tLimPreAuthNode));
}
limInitPreAuthTimerTable(pMac, &pMac->lim.gLimPreAuthTimerTable);