summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/SmbiosDxe
diff options
context:
space:
mode:
authorli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-13 06:16:51 +0000
committerli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-13 06:16:51 +0000
commitf63085f50c1e8c086d6c4007a9ec68fa66267411 (patch)
treee82bccbd49f5946998001ef9f2ccce213f3d713d /MdeModulePkg/Universal/SmbiosDxe
parentc56b65665de7a665e29107ee9c377c1e2e84d343 (diff)
downloadedk2-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.c1
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 {