audk/MdeModulePkg/Library/UefiBootManagerLib
KrishnadasX Veliyathuparambil Prakashan cb38ace647 MdeModulePkg: Upon BootOption failure, Destroy RamDisk memory before RSC.
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2818

For better memory management, re-ordered the DestroyRamDisk and
ReportStatusCode calls inside the EfiBootManagerBoot() function.

This will help to clean the unused memory before reporting the
failure status, so that OEMs can use RSC Listener to launch
custom boot option or application for recovering the failed
hard drive.

This change will help to ensure that the allocated pool of memory
for the failed boot option is freed before executing OEM's RSC
listener callback to handle every boot option failure.

Signed-off-by: KrishnadasX Veliyathuparambil Prakashan <krishnadasx.veliyathuparambil.prakashan@intel.com>
Cc: "Gao, Zhichao" <zhichao.gao@intel.com>
Cc: "Ni, Ray" <ray.ni@intel.com>
Reviewed-by: Sunny Wang <sunnywang@hpe.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
2020-07-20 15:00:18 +00:00
..
BmBoot.c MdeModulePkg: Upon BootOption failure, Destroy RamDisk memory before RSC. 2020-07-20 15:00:18 +00:00
BmBootDescription.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
BmConnect.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
BmConsole.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
BmDriverHealth.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
BmHotkey.c MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
BmLoadOption.c MdeModulePkg/UefiBootManager: Unload image on EFI_SECURITY_VIOLATION 2019-09-25 10:03:57 +08:00
BmMisc.c MdeModulePkg/UefiBootManager: Unload image on EFI_SECURITY_VIOLATION 2019-09-25 10:03:57 +08:00
InternalBm.h MdeModulePkg: Add EDK2 Platform Boot Manager Protocol 2020-01-08 07:28:39 +00:00
UefiBootManagerLib.inf MdeModulePkg: Add EDK2 Platform Boot Manager Protocol 2020-01-08 07:28:39 +00:00
UefiBootManagerLib.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00