From 8932679df5be046feba30fae80776c5815232a08 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Mon, 25 Sep 2017 09:46:31 +0800 Subject: [PATCH] MdeModulePkg/DxeCore: Add check to ensure no possible NULL ptr deref Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu Reviewed-by: Star Zeng --- MdeModulePkg/Core/Dxe/Hand/Handle.c | 1 + 1 file changed, 1 insertion(+) 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) { //