summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-27 09:04:11 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-27 09:04:11 +0000
commit771ececd1288bb2bee8ea6fee61a1a0220914be5 (patch)
tree8322a497f5fed08816a28ee95c4d143bb49aa23b /EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk
parent3978f5d92b31c42c2e6090409d1d83eefdb5face (diff)
downloadedk2-platforms-771ececd1288bb2bee8ea6fee61a1a0220914be5.tar.xz
Add the missing check for NULL pointer before use it.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10116 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk')
-rw-r--r--EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.c b/EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.c
index ff4165d19e..ef64cc84f1 100644
--- a/EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.c
+++ b/EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.c
@@ -7,7 +7,7 @@ these two conditions are true:
1) Framework module consuming FV is present
2) And the platform only produces FV2
-Copyright (c) 2006 - 2008 Intel Corporation. <BR>
+Copyright (c) 2006 - 2010 Intel Corporation. <BR>
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
@@ -597,6 +597,7 @@ FvWriteFile (
FirmwareVolume2 = Private->FirmwareVolume2;
PiFileData = AllocateCopyPool (sizeof (EFI_FV_WRITE_FILE_DATA), FileData);
+ ASSERT (PiFileData != NULL);
//
// Framework Spec assume firmware files are Memory-Mapped.