mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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:
parent
0e8af88034
commit
fadb9dcb9d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue