Reviewed-by: Dandan Bi <dandan...@intel.com>
Thanks, Dandan > -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of > wenyi,xie via groups.io > Sent: Tuesday, November 30, 2021 9:51 AM > To: devel@edk2.groups.io; Wang, Jian J <jian.j.w...@intel.com>; > gaolim...@byosoft.com.cn; Bi, Dandan <dandan...@intel.com> > Cc: songdongku...@huawei.com; xiewen...@huawei.com > Subject: [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/DxeCorePerformanceLi > b.c > b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLi > b.c > index 532b3f8c90e2..f8778c25188a 100644 > --- > a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLi > b.c > +++ > b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLi > b.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 (#84183): https://edk2.groups.io/g/devel/message/84183 Mute This Topic: https://groups.io/mt/87393967/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-