]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg/Tcg2Pei: Add missing PCRIndex in FvBlob event.
authorJiewen Yao <jiewen.yao@intel.com>
Sun, 5 Jul 2020 11:31:26 +0000 (19:31 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sat, 11 Jul 2020 03:57:26 +0000 (03:57 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2840

Cc: Jian J Wang <jian.j.wang@intel.com>
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c

index 4852d8690617e9d80b8205316d90ad512417e15a..19b8e4b318c5a37f3fae808e22752f5ad1ffc7d9 100644 (file)
@@ -633,6 +633,7 @@ MeasureFvImage (
     }\r
     FvBlob2.BlobBase      = FvBase;\r
     FvBlob2.BlobLength    = FvLength;\r
+    TcgEventHdr.PCRIndex  = 0;\r
     TcgEventHdr.EventType = EV_EFI_PLATFORM_FIRMWARE_BLOB2;\r
     TcgEventHdr.EventSize = sizeof (FvBlob2);\r
     EventData             = &FvBlob2;\r