mirror of https://github.com/acidanthera/audk.git
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
|
@ -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…
Reference in New Issue