diff options
author | Hao Wu <hao.a.wu@intel.com> | 2017-11-14 13:29:03 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2017-11-15 20:47:14 +0800 |
commit | 996bd353d28f6bf48ea6047c71f95c59ac378e61 (patch) | |
tree | 67e65a7bc0094a4789a93c758ee3e1a09516876e /CorebootModulePkg | |
parent | 1fbe8276c4031004df8b0516bc038d10f2037dcc (diff) | |
download | edk2-996bd353d28f6bf48ea6047c71f95c59ac378e61.tar.gz edk2-996bd353d28f6bf48ea6047c71f95c59ac378e61.tar.bz2 edk2-996bd353d28f6bf48ea6047c71f95c59ac378e61.zip |
ShellPkg/Shell: Check the OpenVolume result in OpenRootByHandle()
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=779
For the API EfiShellOpenRootByHandle():
The return status of the call to SimpleFileSystem->OpenVolume should be
checked.
It is possible that there is a media change in the device (like CD/DVD
ROM). In such case, the volume root opened and/or the device path opened
previously (also within EfiShellOpenRootByHandle) may be invalid.
This commit adds a check for the result of OpenVolume before subsequently
calling functions like EfiShellGetMapFromDevicePath() &
ConvertEfiFileProtocolToShellHandle().
Cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'CorebootModulePkg')
0 files changed, 0 insertions, 0 deletions