Hi Liming, Can this patch check in before this stable tag? Thanks Zhiguang
> -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Zhiguang > Liu > Sent: Tuesday, September 1, 2020 8:55 AM > To: devel@edk2.groups.io > Cc: Yao, Jiewen <jiewen....@intel.com>; Wang, Jian J <jian.j.w...@intel.com>; > Zhang, Qi1 <qi1.zh...@intel.com>; Kumar, Rahul1 <rahul1.ku...@intel.com>; > Laszlo Ersek <ler...@redhat.com> > Subject: [edk2-devel] [PATCH] SecurityPkg: Initailize variable Status before > it is > consumed. > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2945 > > V2: Move "Status = EFI_SUCCESS;" before the EDKII_TCG_PRE_HASH check. > > Cc: Jiewen Yao <jiewen....@intel.com> > Cc: Jian J Wang <jian.j.w...@intel.com> > Cc: Qi Zhang <qi1.zh...@intel.com> > Cc: Rahul Kumar <rahul1.ku...@intel.com> > Cc: Laszlo Ersek <ler...@redhat.com> > Reviewed-by: Jiewen Yao <jiewen....@intel.com> > Signed-off-by: Zhiguang Liu <zhiguang....@intel.com> > --- > SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c > b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c > index 0e770f4485..93a8803ff6 100644 > --- a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c > +++ b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c > @@ -456,6 +456,7 @@ HashLogExtendEvent ( > if ((Flags & EDKII_TCG_PRE_HASH) != 0 || (Flags & > EDKII_TCG_PRE_HASH_LOG_ONLY) != 0) { > > ZeroMem (&DigestList, sizeof(DigestList)); > > CopyMem (&DigestList, HashData, sizeof(DigestList)); > > + Status = EFI_SUCCESS; > > if ((Flags & EDKII_TCG_PRE_HASH) !=0 ) { > > Status = Tpm2PcrExtend ( > > NewEventHdr->PCRIndex, > > -- > 2.25.1.windows.1 > > > -=-=-=-=-=-= > Groups.io Links: You receive all messages sent to this group. > > View/Reply Online (#64865): https://edk2.groups.io/g/devel/message/64865 > Mute This Topic: https://groups.io/mt/76530112/1779286 > Group Owner: devel+ow...@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub [zhiguang....@intel.com] > -=-=-=-=-=-= -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#64872): https://edk2.groups.io/g/devel/message/64872 Mute This Topic: https://groups.io/mt/76530112/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-