summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2016-07-01 13:44:46 +0800
committerHao Wu <hao.a.wu@intel.com>2016-07-01 13:48:24 +0800
commit2292c87ec3ee8829e335ee315f849b30be9da3c4 (patch)
treea505e03b3d50ff1f8d9965c10b0e4dab665f1daf
parent473ba62e32895187367338a662c9c7c75a0f5616 (diff)
downloadedk2-2292c87ec3ee8829e335ee315f849b30be9da3c4.tar.gz
edk2-2292c87ec3ee8829e335ee315f849b30be9da3c4.tar.bz2
edk2-2292c87ec3ee8829e335ee315f849b30be9da3c4.zip
MdeModulePkg MemoryProfile: Add ASSERT to check pointer 'DriverInfoData'
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com>
-rw-r--r--MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c b/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c
index 1ae991b702..defd50d18f 100644
--- a/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c
+++ b/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c
@@ -318,6 +318,7 @@ BuildDriverInfo (
if (EFI_ERROR (Status)) {
return NULL;
}
+ ASSERT (DriverInfoData != NULL);
ZeroMem (DriverInfoData, sizeof (*DriverInfoData));