summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/DxeServicesLib/DxeServicesLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/DxeServicesLib/DxeServicesLib.c b/MdePkg/Library/DxeServicesLib/DxeServicesLib.c
index 107bf4bd62..45936d4abf 100644
--- a/MdePkg/Library/DxeServicesLib/DxeServicesLib.c
+++ b/MdePkg/Library/DxeServicesLib/DxeServicesLib.c
@@ -617,7 +617,7 @@ GetFileBufferByFilePath (
}
}
- if (!EFI_ERROR (Status)) {
+ if (!EFI_ERROR (Status) && (FileInfo != NULL)) {
//
// Allocate space for the file
//