summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core/Dxe
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2017-09-25 09:46:31 +0800
committerHao Wu <hao.a.wu@intel.com>2017-09-26 09:38:46 +0800
commit8932679df5be046feba30fae80776c5815232a08 (patch)
tree8645a794027e897438991521456c9d1bd5b73ebf /MdeModulePkg/Core/Dxe
parentbaaa3cee1eafc044606ee9dc60ec091713f81b8b (diff)
downloadedk2-8932679df5be046feba30fae80776c5815232a08.tar.gz
edk2-8932679df5be046feba30fae80776c5815232a08.tar.bz2
edk2-8932679df5be046feba30fae80776c5815232a08.zip
MdeModulePkg/DxeCore: Add check to ensure no possible NULL ptr deref
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg/Core/Dxe')
-rw-r--r--MdeModulePkg/Core/Dxe/Hand/Handle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Core/Dxe/Hand/Handle.c b/MdeModulePkg/Core/Dxe/Hand/Handle.c
index 3ed187b279..2db441725c 100644
--- a/MdeModulePkg/Core/Dxe/Hand/Handle.c
+++ b/MdeModulePkg/Core/Dxe/Hand/Handle.c
@@ -1178,6 +1178,7 @@ Done:
// EFI_ALREADY_STARTED is not an error for bus driver.
// Return the corresponding protocol interface.
//
+ ASSERT (Prot != NULL);
*Interface = Prot->Interface;
} else if (Status == EFI_UNSUPPORTED) {
//