diff options
author | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-05-30 10:36:52 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-05-30 10:36:52 +0000 |
commit | 7ea7eee3a587eac3988f55ca0d79cefbc325c789 (patch) | |
tree | 1679371f879ab892fcb8404f375c1372065187fe /PerformancePkg | |
parent | 25fbcc0a583b7d95c20ee1766acdf86588d96ee2 (diff) | |
download | edk2-platforms-7ea7eee3a587eac3988f55ca0d79cefbc325c789.tar.xz |
LoadedImageDevicePath protocol may be installed with NULL device path, so add check before using the device path.
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
Diffstat (limited to 'PerformancePkg')
-rw-r--r-- | PerformancePkg/Dp_App/DpUtilities.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PerformancePkg/Dp_App/DpUtilities.c b/PerformancePkg/Dp_App/DpUtilities.c index 0d4e17acc1..f44745fd1d 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;
//
|