X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FFaultTolerantWriteDxe%2FFtwMisc.c;h=482753f62cbb5fad9d59b32b92448347ec95f79c;hp=dc110a226d9eeb5bd8be9decd5280a6594b34b87;hb=fe92f438ac860a09e57a2a6a37c1a1d8b6539321;hpb=5d4f8cf3c9aace8ad3a37670629a88bb7b21a3f7 diff --git a/MdeModulePkg/Universal/FaultTolerantWriteDxe/FtwMisc.c b/MdeModulePkg/Universal/FaultTolerantWriteDxe/FtwMisc.c index dc110a226d..482753f62c 100644 --- a/MdeModulePkg/Universal/FaultTolerantWriteDxe/FtwMisc.c +++ b/MdeModulePkg/Universal/FaultTolerantWriteDxe/FtwMisc.c @@ -2,7 +2,7 @@ Internal generic functions to operate flash block. -Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -777,7 +777,7 @@ FtwGetLastWriteHeader ( // // If Offset exceed the FTW work space boudary, return error. // - if (Offset > FtwWorkSpaceSize) { + if (Offset >= FtwWorkSpaceSize) { *FtwWriteHeader = FtwHeader; return EFI_ABORTED; }