mirror of https://github.com/acidanthera/audk.git
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:
parent
c56b65665d
commit
f63085f50c
|
@ -541,6 +541,8 @@ GetCapsuleInfo (
|
|||
UINTN Count;
|
||||
UINTN Size;
|
||||
|
||||
ASSERT (Desc != NULL);
|
||||
|
||||
Count = 0;
|
||||
Size = 0;
|
||||
|
||||
|
|
|
@ -973,6 +973,7 @@ SmbiosCreateTable (
|
|||
//
|
||||
// Assemble the tables
|
||||
//
|
||||
ASSERT (EntryPointStructure->TableAddress != 0);
|
||||
BufferPointer = (UINT8 *) (UINTN) EntryPointStructure->TableAddress;
|
||||
CurrentSmbiosEntry = NULL;
|
||||
do {
|
||||
|
|
Loading…
Reference in New Issue