[PATCH 1/1] efi_loader: fix comment in ESRT code

Ilias Apalodimas ilias.apalodimas at linaro.org
Tue Jan 24 11:25:31 CET 2023


On Tue, Jan 24, 2023 at 12:26:45AM +0100, Heinrich Schuchardt wrote:
> There is no variable num_pages in function efi_esrt_allocate_install().
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  lib/efi_loader/efi_esrt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/efi_loader/efi_esrt.c b/lib/efi_loader/efi_esrt.c
> index dcc08a6d3a..7f46d651e6 100644
> --- a/lib/efi_loader/efi_esrt.c
> +++ b/lib/efi_loader/efi_esrt.c
> @@ -115,7 +115,7 @@ efi_status_t efi_esrt_allocate_install(u32 num_entries)
>  	u32 size = efi_esrt_entries_to_size(num_entries);
>  	efi_guid_t esrt_guid = efi_esrt_guid;
>
> -	/* Reserve num_pages for ESRT */
> +	/* Reserve memory for ESRT */
>  	ret = efi_allocate_pool(EFI_BOOT_SERVICES_DATA, size,
>  				(void **)&new_esrt);
>
> --
> 2.38.1
>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>



More information about the U-Boot mailing list