diff options
author | Star Zeng <star.zeng@intel.com> | 2017-05-18 16:34:37 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2017-05-19 11:32:11 +0800 |
commit | da0df6ca8f8f118866e53c7fb770598c199993a6 (patch) | |
tree | 6e51abb76f6be3ca052c1ddab27d568983227c85 /MdeModulePkg/Universal/PCD | |
parent | f78c8bf2c64f57d5148bea1a56ade2218a13e4d7 (diff) | |
download | edk2-da0df6ca8f8f118866e53c7fb770598c199993a6.tar.gz |
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>
Diffstat (limited to 'MdeModulePkg/Universal/PCD')
-rw-r--r-- | MdeModulePkg/Universal/PCD/Dxe/Pcd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/PCD/Dxe/Pcd.c b/MdeModulePkg/Universal/PCD/Dxe/Pcd.c index 9d710bbf1f..326644c531 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Pcd.c +++ b/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);
}
|