Skip to content
Snippets Groups Projects
Commit 3d8e1456 authored by xypron.glpk@gmx.de's avatar xypron.glpk@gmx.de Committed by Alexander Graf
Browse files

efi_loader: refactor efi_uninstall_protocol_interface


For the implementation of UninstallMultipleProtocolInterfaces we
need to call efi_uninstall_protocol_interface. In internal calls
we should not pass through EFI_EXIT.

The patch introduces a wrapper function
efi_uninstall_protocol_interface_ext.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 8bee5a3c
No related branches found
No related tags found
No related merge requests found
...@@ -384,8 +384,6 @@ static efi_status_t EFIAPI efi_uninstall_protocol_interface(void *handle, ...@@ -384,8 +384,6 @@ static efi_status_t EFIAPI efi_uninstall_protocol_interface(void *handle,
int i; int i;
efi_status_t r = EFI_NOT_FOUND; efi_status_t r = EFI_NOT_FOUND;
EFI_ENTRY("%p, %p, %p", handle, protocol, protocol_interface);
if (!handle || !protocol) { if (!handle || !protocol) {
r = EFI_INVALID_PARAMETER; r = EFI_INVALID_PARAMETER;
goto out; goto out;
...@@ -417,7 +415,16 @@ static efi_status_t EFIAPI efi_uninstall_protocol_interface(void *handle, ...@@ -417,7 +415,16 @@ static efi_status_t EFIAPI efi_uninstall_protocol_interface(void *handle,
} }
out: out:
return EFI_EXIT(r); return r;
}
static efi_status_t EFIAPI efi_uninstall_protocol_interface_ext(void *handle,
efi_guid_t *protocol, void *protocol_interface)
{
EFI_ENTRY("%p, %p, %p", handle, protocol, protocol_interface);
return EFI_EXIT(efi_uninstall_protocol_interface(handle, protocol,
protocol_interface));
} }
static efi_status_t EFIAPI efi_register_protocol_notify(efi_guid_t *protocol, static efi_status_t EFIAPI efi_register_protocol_notify(efi_guid_t *protocol,
...@@ -905,7 +912,7 @@ static const struct efi_boot_services efi_boot_services = { ...@@ -905,7 +912,7 @@ static const struct efi_boot_services efi_boot_services = {
.check_event = efi_check_event, .check_event = efi_check_event,
.install_protocol_interface = efi_install_protocol_interface_ext, .install_protocol_interface = efi_install_protocol_interface_ext,
.reinstall_protocol_interface = efi_reinstall_protocol_interface, .reinstall_protocol_interface = efi_reinstall_protocol_interface,
.uninstall_protocol_interface = efi_uninstall_protocol_interface, .uninstall_protocol_interface = efi_uninstall_protocol_interface_ext,
.handle_protocol = efi_handle_protocol, .handle_protocol = efi_handle_protocol,
.reserved = NULL, .reserved = NULL,
.register_protocol_notify = efi_register_protocol_notify, .register_protocol_notify = efi_register_protocol_notify,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment