[PATCH 1/2] lib/efi_loader: fix block io revision

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Jun 21 10:39:48 CEST 2026


On 6/9/26 10:07, Vincent Stehlé wrote:
> The Revision field of the EFI_BLOCK_IO_PROTOCOL structure must be set to
> one of the two valid values [1], but this is not initialized in the
> efi_loader; fix it.
> 
> Link: https://uefi.org/specs/UEFI/2.11/13_Protocols_Media_Access.html#efi-block-io-protocol [1]
> Signed-off-by: Vincent Stehlé <vincent.stehle at arm.com>
> Cc: Heinrich Schuchardt <xypron.glpk at gmx.de>
> Cc: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> Cc: Tom Rini <trini at konsulko.com>

Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

> ---
>   lib/efi_loader/efi_disk.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c
> index f8a57539ec6..4a3ace3a304 100644
> --- a/lib/efi_loader/efi_disk.c
> +++ b/lib/efi_loader/efi_disk.c
> @@ -305,6 +305,7 @@ static efi_status_t EFIAPI efi_disk_flush_blocks(struct efi_block_io *this)
>   }
>   
>   static const struct efi_block_io block_io_disk_template = {
> +	.revision = EFI_BLOCK_IO_PROTOCOL_REVISION3,
>   	.reset = &efi_disk_reset,
>   	.read_blocks = &efi_disk_read_blocks,
>   	.write_blocks = &efi_disk_write_blocks,
> 



More information about the U-Boot mailing list