summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Library/EdkFvbServiceLib/x64
diff options
context:
space:
mode:
Diffstat (limited to 'EdkModulePkg/Library/EdkFvbServiceLib/x64')
-rw-r--r--EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c b/EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c
index e9d7500261..4dcb81d216 100644
--- a/EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c
+++ b/EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c
@@ -102,7 +102,8 @@ Returns:
//
// Use the next free slot for a new entry
//
- UpdateIndex = mFvbCount++;;
+ UpdateIndex = mFvbCount++;
+ ASSERT (UpdateIndex < MAX_FVB_COUNT);
mFvbEntry[UpdateIndex].Handle = Handle;
}
//