summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg
diff options
context:
space:
mode:
Diffstat (limited to 'EdkCompatibilityPkg')
-rw-r--r--EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.c b/EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.c
index 6612fc47db..130ce6d991 100644
--- a/EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.c
+++ b/EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.c
@@ -273,6 +273,7 @@ Returns:
Hob.Header->HobType = EFI_HOB_TYPE_GUID_EXTENSION;
Length = sizeof(EFI_HOB_GUID_TYPE) + BufferSize;
+ Length = (Length + 0x7) & (~0x7);
Hob.Header->HobLength = (UINT16)Length;
CopyMem(&Hob.Guid->Name, Guid, sizeof(EFI_GUID));
CopyMem(Hob.Raw + sizeof(EFI_HOB_GUID_TYPE), Buffer, BufferSize);