summaryrefslogtreecommitdiffstats
path: root/Vlv2TbltDevicePkg
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2015-09-30 04:39:34 +0000
committerlzeng14 <lzeng14@Edk2>2015-09-30 04:39:34 +0000
commitabbe4e57f4bf753613535a85f3bd82067644bdae (patch)
treeb39fe37c601219ae0ede4089ec2d997ca328bdc0 /Vlv2TbltDevicePkg
parent201d2d21bdc88f85d85f30cd92d6d00b7e25301c (diff)
downloadedk2-abbe4e57f4bf753613535a85f3bd82067644bdae.tar.gz
edk2-abbe4e57f4bf753613535a85f3bd82067644bdae.tar.bz2
edk2-abbe4e57f4bf753613535a85f3bd82067644bdae.zip
Vlv2TbltDevicePkg FvbRuntimeDxe: Fix CalculateCheckSum16 input incorrect length
The input length should be "The size, in bytes, of Buffer.", the divide sizeof (UINT16) operation is not needed and incorrect. Cc: David Wei <david.wei@intel.com> Cc: Tim He <tim.he@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: David Wei <david.wei@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18563 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Vlv2TbltDevicePkg')
-rw-r--r--Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbInfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbInfo.c b/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbInfo.c
index 832e246d1c..ad039fb19b 100644
--- a/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbInfo.c
+++ b/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbInfo.c
@@ -2,7 +2,7 @@
Defines data structure that is the volume header found.
These data is intent to decouple FVB driver with FV header.
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
@@ -156,7 +156,7 @@ GetFvbInfo (
//
// Update the checksum value of FV header.
//
- FvHeader->Checksum = CalculateCheckSum16 ((UINT16 *) FvHeader, FvHeader->HeaderLength / sizeof (UINT16));
+ FvHeader->Checksum = CalculateCheckSum16 ((UINT16 *) FvHeader, FvHeader->HeaderLength);
*FvbInfo = FvHeader;