diff options
author | Star Zeng <star.zeng@intel.com> | 2017-05-18 16:34:37 +0800 |
---|---|---|
committer | Guo Mang <mang.guo@intel.com> | 2017-07-12 11:24:45 +0800 |
commit | 390231e6a90adab89c0b77b88741475a51f6e68f (patch) | |
tree | 092d657e631da9483c22b539546e31cd5bfc2838 /Core | |
parent | 43b052fcfd68bf5fba06272135ff3aa1af5cbb6b (diff) | |
download | edk2-platforms-390231e6a90adab89c0b77b88741475a51f6e68f.tar.xz |
MdeModulePkg PCD: Fix TmpTokenSpaceBufferCount not assigned correctly
When DynamicEx PCD is only used in PEI code, but not DXE code,
current implementation of DxePcdGetNextTokenSpace does not assign
TmpTokenSpaceBufferCount correctly, but leaves it as initial value,
then DxePcdGetNextTokenSpace may return incorrect token space guid
and status.
This patch is to fix this issue.
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
(cherry picked from commit da0df6ca8f8f118866e53c7fb770598c199993a6)
Diffstat (limited to 'Core')
-rw-r--r-- | Core/MdeModulePkg/Universal/PCD/Dxe/Pcd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Core/MdeModulePkg/Universal/PCD/Dxe/Pcd.c b/Core/MdeModulePkg/Universal/PCD/Dxe/Pcd.c index 9d710bbf1f..326644c531 100644 --- a/Core/MdeModulePkg/Universal/PCD/Dxe/Pcd.c +++ b/Core/MdeModulePkg/Universal/PCD/Dxe/Pcd.c @@ -1296,6 +1296,7 @@ DxePcdGetNextTokenSpace ( (EFI_GUID *)((UINT8 *)mPcdDatabase.PeiDb + mPcdDatabase.PeiDb->GuidTableOffset)
);
CopyMem (TmpTokenSpaceBuffer, PeiTokenSpaceTable, sizeof (EFI_GUID*) * PeiTokenSpaceTableSize);
+ TmpTokenSpaceBufferCount = PeiTokenSpaceTableSize;
FreePool (PeiTokenSpaceTable);
}
|