mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-26 05:34:30 +08:00
efi_loader: avoid using HandleProtocol in initrddump.efi
HandleProtocol() is deprecated and leaves an OpenedProtocolInformation behind. Use OpenProtocol(GET_PROTOCOL) instead. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
ff6ce8da97
commit
199675b9d5
@ -291,8 +291,9 @@ static efi_status_t get_initrd(void **initrd, efi_uintn_t *initrd_size)
|
||||
error(u"Load File2 protocol not found\r\n");
|
||||
return ret;
|
||||
}
|
||||
ret = bs->handle_protocol(handle, &load_file2_guid,
|
||||
(void **)&load_file2_prot);
|
||||
ret = bs->open_protocol(handle, &load_file2_guid,
|
||||
(void **)&load_file2_prot, NULL, NULL,
|
||||
EFI_OPEN_PROTOCOL_GET_PROTOCOL);
|
||||
ret = load_file2_prot->load_file(load_file2_prot, dp, false,
|
||||
initrd_size, NULL);
|
||||
if (ret != EFI_BUFFER_TOO_SMALL) {
|
||||
|
Loading…
Reference in New Issue
Block a user