Skip to content

Commit

Permalink
SecurityPkg: Correct Pages for TCG2 communication buffer
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
td36 committed Aug 21, 2024
1 parent b158dad commit dc2dc89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigPeim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit dc2dc89

Please sign in to comment.