]> git.proxmox.com Git - mirror_edk2.git/commit - EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationLib.c
EmbeddedPkg/PrePiMemoryAllocationLib: use correct size for pool hob
authorArd Biesheuvel <ard.biesheuvel@arm.com>
Wed, 6 Jan 2021 10:26:34 +0000 (11:26 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 8 Jan 2021 13:37:57 +0000 (13:37 +0000)
commit18198171559160386067f5ebe0d671d61ffd0679
tree4aad66dbcd423b864d755c5a1d75df2ee5646479
parent7e6776deaf87e73fb283ab6ea6fb08ef3a097bcf
EmbeddedPkg/PrePiMemoryAllocationLib: use correct size for pool hob

Use the correct type in the sizeof() expression to calculate the size
of the newly allocated EFI_HOB_MEMORY_POOL hob.

Link: https://bugzilla.tianocore.org/show_bug.cgi?id=3139
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationLib.c