diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-08 10:25:31 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-08 10:25:31 +0000 |
commit | 1d5df82280c85e473b60d2e2740058a9ec0a9e36 (patch) | |
tree | f8a84307432dd1a8c93a4f1cbfcd2dc9f07f52f4 | |
parent | 1536925933b2fccc2431e3b0e5f92d8fd581664f (diff) | |
download | edk2-platforms-1d5df82280c85e473b60d2e2740058a9ec0a9e36.tar.xz |
Set Root=NULL if some error code is returned from OpenVolume() interface of EfiSimpleFileSystem Protocol. The implementation of that interface does not necessarily set the output parameter of Root NULL if error code is returned.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6085 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Library/GenericBdsLib/BdsMisc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c b/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c index 9482cbe119..499d0f30b3 100644 --- a/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c +++ b/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c @@ -1014,6 +1014,7 @@ BdsLibGetImageHeader ( &Root
);
if (EFI_ERROR (Status)) {
+ Root = NULL; goto Done;
}
|