SecurityPkg: Correct Pages for TCG2 communication buffer

The value of the Pages for TCG2 communication buffer
should be EFI_SIZE_TO_PAGES(sizeof(TCG_NVS)) instead of
sizeof(TCG_NVS).

Signed-off-by: Dun Tan <dun.tan@intel.com>
This commit is contained in:
Dun Tan 2024-08-21 09:50:14 +08:00 committed by mergify[bot]
parent 0e8af88034
commit fadb9dcb9d
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ BuildTcg2AcpiCommunicateBufferHob (
VOID *Buffer;
UINTN Pages;
Pages = sizeof (TCG_NVS);
Pages = EFI_SIZE_TO_PAGES (sizeof (TCG_NVS));
Buffer = AllocateRuntimePages (Pages);
ASSERT (Buffer != NULL);