summaryrefslogtreecommitdiff
path: root/MdePkg/Library
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-02 10:13:24 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-02 10:13:24 +0000
commite191bb1430d5f5601af97842e0c17bcea416a036 (patch)
treedfc2cbaad540bfea88c1db686e33f2522b4488b4 /MdePkg/Library
parentf981c39b38bf7c8ddd51dd073dd6c6d39c706830 (diff)
downloadedk2-e191bb1430d5f5601af97842e0c17bcea416a036.zip
edk2-e191bb1430d5f5601af97842e0c17bcea416a036.tar.gz
edk2-e191bb1430d5f5601af97842e0c17bcea416a036.tar.bz2
Add more check for local FileInfo variable before it is used.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9506 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library')
-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 107bf4b..45936d4 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
//