Reviewed-by: Star Zeng <[email protected]> -----Original Message----- From: Wu, Hao A Sent: Monday, September 25, 2017 9:51 AM To: [email protected] Cc: Wu, Hao A <[email protected]>; Zeng, Star <[email protected]> Subject: [PATCH] MdeModulePkg/DxeCore: Add check to ensure no possible NULL ptr deref
Cc: Star Zeng <[email protected]> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu <[email protected]> --- 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) { // -- 2.12.0.windows.1 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

