diff options
author | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-26 08:53:27 +0000 |
---|---|---|
committer | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-26 08:53:27 +0000 |
commit | d2fbaaab17945b59ca66bcd2f72e26ba3361e1d0 (patch) | |
tree | 29fa29d32bdbd1a34dd97ed53da9496478063a7f /MdeModulePkg/Universal | |
parent | 4ccd9566c12b90ed60c38ca7cf4156ee83861db1 (diff) | |
download | edk2-platforms-d2fbaaab17945b59ca66bcd2f72e26ba3361e1d0.tar.xz |
Add more code robustness check for modules under MdeModulePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10108 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWrite.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWrite.c b/MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWrite.c index 15a12d70fe..e4e6666e28 100644 --- a/MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWrite.c +++ b/MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWrite.c @@ -40,7 +40,7 @@ If one of them is not satisfied, FtwWrite may fail.
Usually, Spare area only takes one block. That's SpareAreaLength = BlockSize, NumberOfSpareBlock = 1.
-Copyright (c) 2006 - 2009, Intel Corporation
+Copyright (c) 2006 - 2010, 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
@@ -837,6 +837,7 @@ FtwGetLastWrite ( *Complete = TRUE;
return EFI_NOT_FOUND;
}
+ ASSERT (Record != NULL);
}
//
|