summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib
diff options
context:
space:
mode:
authorKevin Loughlin <kevinloughlin@google.com>2026-10-16 22:54:04 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-10-21 12:48:29 +0300
commitb51b8dfbb06ff5a9c6b7fed4e443dd14f89403e9 (patch)
tree8913933d908545500ba9b0be90703ec0172382e1 /MdeModulePkg/Library/PiDxeS3BootScriptLib
parent705de24e39a093ceb57fd7372e697e73380e57fe (diff)
downloadedk2-b51b8dfbb06ff5a9c6b7fed4e443dd14f89403e9.tar.xz
OvmfPkg/PlatformBootManagerLib: Guard Boot Manager Menu hotkey registration
In PlatformRegisterOptionsAndKeys() (BdsPlatform.c), EfiBootManagerGetBootManagerMenu(&BootOption) returns EFI_NOT_FOUND when UiApp.inf is omitted from the firmware volume (which PlatformRegisterFvBootOption() already tolerates via FileIsInFv(), and PlatformBootManagerUnableToBoot() in BdsPlatform.c and BdsEntry.c also handle). Previously, PlatformRegisterOptionsAndKeys() asserted ASSERT_EFI_ERROR(Status) and unconditionally called EfiBootManagerAddKeyOptionVariable() with an uninitialized BootOption.OptionNumber. Replace ASSERT_EFI_ERROR(Status) with if (!EFI_ERROR (Status)) so that F2/Esc hotkey registration is skipped cleanly when UiApp is absent, while preserving identical behavior when UiApp is present. Signed-off-by: Kevin Loughlin <kevinloughlin@google.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib')
0 files changed, 0 insertions, 0 deletions