mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
efi_loader: efi_handle_protocol set attributes
UEFI spec 2.7 indicates that HandleProtocol can be implemented by calling OpenProtocol with attributes = EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL. Currently we pass attributes = 0 to efi_open_protocol. 0 is not a valid value when calling OpenProtocol. This does not cause any errors yet because our implementation of OpenProtocol is incomplete. We should pass the correct value to enable a fully compliant implementation of OpenProtocol in the future. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
6e0bf8d8b4
commit
8e1d329ff5
@ -752,8 +752,8 @@ static efi_status_t EFIAPI efi_handle_protocol(void *handle,
|
|||||||
efi_guid_t *protocol,
|
efi_guid_t *protocol,
|
||||||
void **protocol_interface)
|
void **protocol_interface)
|
||||||
{
|
{
|
||||||
return efi_open_protocol(handle, protocol, protocol_interface,
|
return efi_open_protocol(handle, protocol, protocol_interface, NULL,
|
||||||
NULL, NULL, 0);
|
NULL, EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct efi_boot_services efi_boot_services = {
|
static const struct efi_boot_services efi_boot_services = {
|
||||||
|
Loading…
Reference in New Issue
Block a user