diff options
author | Dun Tan <dun.tan@intel.com> | 2024-08-21 09:50:14 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-08-27 06:14:36 +0000 |
commit | fadb9dcb9dc734418d4e88296cdc609bb298df41 (patch) | |
tree | 3c7d6b64339d9d20cc020342f63dc216212cc6be /SecurityPkg | |
parent | 0e8af8803489a10d4edc61a94f1c6e03965c16f5 (diff) | |
download | edk2-fadb9dcb9dc734418d4e88296cdc609bb298df41.zip edk2-fadb9dcb9dc734418d4e88296cdc609bb298df41.tar.gz edk2-fadb9dcb9dc734418d4e88296cdc609bb298df41.tar.bz2 |
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>
Diffstat (limited to 'SecurityPkg')
-rw-r--r-- | SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigPeim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigPeim.c b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigPeim.c index 73121b0..0e4dd3e 100644 --- a/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigPeim.c +++ b/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigPeim.c @@ -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);
|