Add NULl check for pointer.

Signed-off-by: li-elvin
Reviewed-by: lgao4, lzeng14


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12333 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
li-elvin 2011-09-13 06:16:51 +00:00
parent c56b65665d
commit f63085f50c
2 changed files with 3 additions and 0 deletions

View File

@ -541,6 +541,8 @@ GetCapsuleInfo (
UINTN Count;
UINTN Size;
ASSERT (Desc != NULL);
Count = 0;
Size = 0;

View File

@ -973,6 +973,7 @@ SmbiosCreateTable (
//
// Assemble the tables
//
ASSERT (EntryPointStructure->TableAddress != 0);
BufferPointer = (UINT8 *) (UINTN) EntryPointStructure->TableAddress;
CurrentSmbiosEntry = NULL;
do {