mirror of
https://github.com/utmapp/edk2.git
synced 2026-12-01 07:53:33 -10:00
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 <[email protected]> Cc: "Gao, Zhichao" <[email protected]> Cc: "Ni, Ray" <[email protected]> Reviewed-by: Sunny Wang <[email protected]> Reviewed-by: Zhichao Gao <[email protected]>