mirror of https://github.com/acidanthera/audk.git
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:
parent
d63242bd69
commit
b7213bbd59
|
@ -1775,7 +1775,10 @@ StoreQemuBootOrder (
|
||||||
Translated,
|
Translated,
|
||||||
&TranslatedSize
|
&TranslatedSize
|
||||||
);
|
);
|
||||||
while (!RETURN_ERROR (Status)) {
|
while (Status == EFI_SUCCESS ||
|
||||||
|
Status == EFI_UNSUPPORTED)
|
||||||
|
{
|
||||||
|
if (Status == EFI_SUCCESS) {
|
||||||
EFI_DEVICE_PATH_PROTOCOL *DevicePath;
|
EFI_DEVICE_PATH_PROTOCOL *DevicePath;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -1803,6 +1806,7 @@ StoreQemuBootOrder (
|
||||||
DevicePath
|
DevicePath
|
||||||
);
|
);
|
||||||
FreePool (DevicePath);
|
FreePool (DevicePath);
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Move to the next OFW devpath.
|
// Move to the next OFW devpath.
|
||||||
|
|
Loading…
Reference in New Issue