MdeModulePkg/DxeCorePerformanceLib:Variable Initial

SmmBootRecordDataSize is initialized in InternalGetSmmPerData,
but this function may fail. so to avoid using SmmBootRecordDataSize
without intialization, set it to 0 at first.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Dandan Bi <dandan.bi@intel.com>
Signed-off-by: Wenyi Xie <xiewenyi2@huawei.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
This commit is contained in:
wenyi,xie via groups.io 2021-11-30 09:51:10 +08:00 committed by mergify[bot]
parent f0f3f5aae7
commit dfafa8e453
1 changed files with 2 additions and 0 deletions

View File

@ -1373,6 +1373,8 @@ UpdateBootPerformanceTable (
UINTN AppendSize;
UINT8 *FirmwarePerformanceTablePtr;
SmmBootRecordDataSize = 0;
//
// Get SMM performance data.
//