diff options
author | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-13 06:16:51 +0000 |
---|---|---|
committer | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-13 06:16:51 +0000 |
commit | f63085f50c1e8c086d6c4007a9ec68fa66267411 (patch) | |
tree | e82bccbd49f5946998001ef9f2ccce213f3d713d /MdeModulePkg/Universal/SmbiosDxe | |
parent | c56b65665de7a665e29107ee9c377c1e2e84d343 (diff) | |
download | edk2-platforms-f63085f50c1e8c086d6c4007a9ec68fa66267411.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Universal/SmbiosDxe')
-rw-r--r-- | MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c index 596e8b2d8b..80ccb1995e 100644 --- a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c +++ b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c @@ -973,6 +973,7 @@ SmbiosCreateTable ( //
// Assemble the tables
//
+ ASSERT (EntryPointStructure->TableAddress != 0);
BufferPointer = (UINT8 *) (UINTN) EntryPointStructure->TableAddress;
CurrentSmbiosEntry = NULL;
do {
|