OvmfPkg/QemuBootOrderLib: skip unsupported entries in StoreQemuBootOrder

When finding an unsupported entry just skip over and continue
with the next entry instead of stop processing altogether.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
Gerd Hoffmann 2022-09-21 07:30:45 +02:00 committed by mergify[bot]
parent d63242bd69
commit b7213bbd59
1 changed files with 30 additions and 26 deletions

View File

@ -1775,7 +1775,10 @@ StoreQemuBootOrder (
Translated,
&TranslatedSize
);
while (!RETURN_ERROR (Status)) {
while (Status == EFI_SUCCESS ||
Status == EFI_UNSUPPORTED)
{
if (Status == EFI_SUCCESS) {
EFI_DEVICE_PATH_PROTOCOL *DevicePath;
//
@ -1803,6 +1806,7 @@ StoreQemuBootOrder (
DevicePath
);
FreePool (DevicePath);
}
//
// Move to the next OFW devpath.