Reviewed-by: Liming Gao <gaolim...@byosoft.com.cn> > -----邮件原件----- > 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 wenyi,xie via > groups.io > 发送时间: 2021年11月30日 9:51 > 收件人: devel@edk2.groups.io; jian.j.w...@intel.com; > gaolim...@byosoft.com.cn; dandan...@intel.com > 抄送: songdongku...@huawei.com; xiewen...@huawei.com > 主题: [edk2-devel] [PATCH EDK2 v1 1/1] > 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.w...@intel.com> > Cc: Liming Gao <gaolim...@byosoft.com.cn> > Cc: Dandan Bi <dandan...@intel.com> > Signed-off-by: Wenyi Xie <xiewen...@huawei.com> > --- > MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c > | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git > a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib. > c > b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib. > c > index 532b3f8c90e2..f8778c25188a 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. > // > -- > 2.20.1.windows.1 > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#84177): https://edk2.groups.io/g/devel/message/84177 Mute This Topic: https://groups.io/mt/87418734/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-