mirror_edk2/MdeModulePkg
Ming Huang 6c27a4d337 MdeModulePkg/UefiBootManangerLib: Fix exception issue
The system environment: virtual-CDROM(USB interface) via BMC, insert a
iso file to CDROM, like ubuntu-18.04.1-server-arm64.iso, change CDROM
to first boot option.
With release version bios, disconnecting CDROM when boot to
"1 seconds left, Press Esc or F2 to enter Setup"
then system will get a exception.

The root cause is the EFI_BLOCK_IO_PROTOCOL for UsbMass will be uninstalled
in this situation after print some transfer error. The status will be
invalid parameter. This line will get a exception for BlockIo not point
to right address:
AllocatePool (BlockIo->Media->BlockSize)
So, here need to judge the status after ASSERT_EFI_ERROR.

The Bugzilla tracker for this:
https://bugzilla.tianocore.org/show_bug.cgi?id=1631

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ming Huang <ming.huang@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
2019-03-21 09:09:43 +08:00
..
Application MdeModulePkg: Rename confusion function name 2019-02-25 09:14:21 +08:00
Bus MdeModulePkg/SdMmcPciHcDxe: Add V3 64b DMA Support 2019-03-11 09:17:52 +08:00
Core MdeModulePkg/DxeCore: Ensure FfsFileHeader 8 bytes aligned 2019-02-28 18:22:53 +08:00
Include MdeModulePkg: Rename confusion function name 2019-02-25 09:14:21 +08:00
Library MdeModulePkg/UefiBootManangerLib: Fix exception issue 2019-03-21 09:09:43 +08:00
Logo MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
Universal MdeModulePkg/HiiImage: Fix stack overflow when corrupted BMP is parsed (CVE-2018-12181) 2019-03-08 23:44:59 +08:00
MdeModulePkg.dec MdeModulePkg: Add GUID for LockBox to save storage dev to init in S3 2019-02-22 08:20:07 +08:00
MdeModulePkg.dsc MdeModulePkg: Add the runtime ResetSystemLib in MdeModulePkg.dsc 2019-02-22 09:45:45 +08:00
MdeModulePkg.uni MdeModulePkg: Refine description a little for PcdEmuVariableNvStoreReserved 2019-01-24 10:52:36 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00