summaryrefslogtreecommitdiff
path: root/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbService.c
diff options
context:
space:
mode:
authorGuo Mang <mang.guo@intel.com>2016-05-20 13:15:55 +0800
committerzwei4 <david.wei@intel.com>2016-05-20 17:48:23 +0800
commit0c66f9d7994d6dd814759a50d4f36e7f102ba183 (patch)
treea18c06de1e272fe8e312deda8b9ba517401e88f5 /Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbService.c
parent3698063924ec10a914352894b90da017452ff120 (diff)
downloadedk2-platforms-0c66f9d7994d6dd814759a50d4f36e7f102ba183.tar.xz
Vlv2TbltDevicePkg: Fixed an Array overflow issue. Remove some useless debug message.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Guo Mang <mang.guo@intel.com>
Diffstat (limited to 'Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbService.c')
-rw-r--r--Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbService.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbService.c b/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbService.c
index 723728ad65..f86db18208 100644
--- a/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbService.c
+++ b/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbService.c
@@ -1017,11 +1017,11 @@ FvbInitialize (
UINTN Idx;
UINT32 MaxLbaSize;
BOOLEAN FvHeaderValid;
-EFI_BOOT_MODE BootMode;
-UINT32 PlatformFvBaseAddress[2];
-UINT32 PlatformFvBaseAddressCount;
-UINT32 PlatformFvLockList[3];
-UINT32 PlatformFvLockListCount;
+ EFI_BOOT_MODE BootMode;
+ UINT32 PlatformFvBaseAddress[3];
+ UINT32 PlatformFvBaseAddressCount;
+ UINT32 PlatformFvLockList[2];
+ UINT32 PlatformFvLockListCount;
//
// This platform driver knows there are 3 FVs on
// FD, which are FvRecovery, FvMain and FvNvStorage.
@@ -1034,7 +1034,7 @@ UINT32 PlatformFvLockListCount;
PlatformFvBaseAddressCount = 1;
PlatformFvBaseAddress[0] = PcdGet32 (PcdFlashNvStorageVariableBase);
} else {
- PlatformFvBaseAddressCount = 2;
+ PlatformFvBaseAddressCount = 3;
PlatformFvBaseAddress[0] = PcdGet32 (PcdFlashFvMainBase);
PlatformFvBaseAddress[1] = PcdGet32 (PcdFlashNvStorageVariableBase);
PlatformFvBaseAddress[2] = PcdGet32 (PcdFlashFvRecoveryBase);
@@ -1043,7 +1043,7 @@ UINT32 PlatformFvLockListCount;
//
// List of FVs that should be write protected on normal boots.
//
- PlatformFvLockListCount = 1;
+ PlatformFvLockListCount = 2;
PlatformFvLockList[0] = PcdGet32 (PcdFlashFvMainBase);
PlatformFvLockList[1] = PcdGet32 (PcdFlashFvRecoveryBase);