From dfafa8e45382939fb5dc78e9d37b97b500a43613 Mon Sep 17 00:00:00 2001 From: "wenyi,xie via groups.io" Date: Tue, 30 Nov 2021 09:51:10 +0800 Subject: 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 Cc: Liming Gao Cc: Dandan Bi Signed-off-by: Wenyi Xie Reviewed-by: Liming Gao Reviewed-by: Dandan Bi --- MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MdeModulePkg/Library/DxeCorePerformanceLib') diff --git a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c index 532b3f8..f8778c2 100644 --- a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c +++ b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c @@ -1373,6 +1373,8 @@ UpdateBootPerformanceTable ( UINTN AppendSize; UINT8 *FirmwarePerformanceTablePtr; + SmmBootRecordDataSize = 0; + // // Get SMM performance data. // -- cgit v1.1