mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 13:11:11 +03:00
[efi] Use efi_open() for all ephemeral protocol opens
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -234,12 +234,9 @@ static int efi_image_exec ( struct image *image ) {
|
||||
}
|
||||
|
||||
/* Get the loaded image protocol for the newly loaded image */
|
||||
efirc = bs->OpenProtocol ( handle, &efi_loaded_image_protocol_guid,
|
||||
&loaded.interface, efi_image_handle,
|
||||
NULL, EFI_OPEN_PROTOCOL_GET_PROTOCOL );
|
||||
if ( efirc ) {
|
||||
if ( ( rc = efi_open ( handle, &efi_loaded_image_protocol_guid,
|
||||
&loaded.interface ) ) != 0 ) {
|
||||
/* Should never happen */
|
||||
rc = -EEFI ( efirc );
|
||||
goto err_open_protocol;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user