]> git.proxmox.com Git - mirror_edk2.git/commitdiff
LoadedImageDevicePath protocol may be installed with NULL device path, so add check...
authorlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 30 May 2012 10:36:52 +0000 (10:36 +0000)
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 30 May 2012 10:36:52 +0000 (10:36 +0000)
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13378 6f19259b-4bc3-4df7-8a09-765794883524

PerformancePkg/Dp_App/DpUtilities.c

index 0d4e17acc136364e0e7c71f58e999d4c7c22655c..f44745fd1dd6042c89bcb03154c59cc551c80323 100644 (file)
@@ -289,7 +289,7 @@ GetNameFromHandle (
                   &gEfiLoadedImageDevicePathProtocolGuid,\r
                   (VOID **) &LoadedImageDevicePath\r
                   );\r
-  if (!EFI_ERROR (Status)) {\r
+  if (!EFI_ERROR (Status) && (LoadedImageDevicePath != NULL)) {\r
     DevicePath = LoadedImageDevicePath;\r
 \r
     //\r