From 7ea7eee3a587eac3988f55ca0d79cefbc325c789 Mon Sep 17 00:00:00 2001 From: lzeng14 Date: Wed, 30 May 2012 10:36:52 +0000 Subject: LoadedImageDevicePath protocol may be installed with NULL device path, so add check before using the device path. Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13378 6f19259b-4bc3-4df7-8a09-765794883524 --- PerformancePkg/Dp_App/DpUtilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PerformancePkg/Dp_App/DpUtilities.c b/PerformancePkg/Dp_App/DpUtilities.c index 0d4e17acc..f44745fd1 100644 --- a/PerformancePkg/Dp_App/DpUtilities.c +++ b/PerformancePkg/Dp_App/DpUtilities.c @@ -289,7 +289,7 @@ GetNameFromHandle ( &gEfiLoadedImageDevicePathProtocolGuid, (VOID **) &LoadedImageDevicePath ); - if (!EFI_ERROR (Status)) { + if (!EFI_ERROR (Status) && (LoadedImageDevicePath != NULL)) { DevicePath = LoadedImageDevicePath; // -- cgit v1.2.3