audk/MdeModulePkg/Library/UefiBootManagerLib
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
..
BmBoot.c MdeModulePkg/UefiBootManangerLib: Fix exception issue 2019-03-21 09:09:43 +08:00
BmBootDescription.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
BmConnect.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
BmConsole.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
BmDriverHealth.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
BmHotkey.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
BmLoadOption.c MdeModulePkg/UefiBootManagerLib: Fix small LoadOptionToVariable leak 2018-07-06 15:38:15 +08:00
BmMisc.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
InternalBm.h MdeModulePkg/UefiBootManagerLib: fix LoadImage/StartImage status code rep. 2019-02-25 11:50:51 +01:00
UefiBootManagerLib.inf MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
UefiBootManagerLib.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00