[PATCH v2 1/2] eficonfig: carve out efi_get_next_variable_name_int calls
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Mon Dec 19 22:08:38 CET 2022
On 12/19/22 02:33, Masahisa Kojima wrote:
> To retrieve the EFI variable name by efi_get_next_variable_name_int(),
> the sequence of alloc -> efi_get_next_variable_name_int ->
> realloc -> efi_get_next_variable_name_int is required.
> In current code, this sequence repeatedly appears in
> the several functions. It should be curved out a common function.
>
> This commit also fixes the missing free() of var_name16
> in eficonfig_delete_invalid_boot_option().
>
> Signed-off-by: Masahisa Kojima <masahisa.kojima at linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
More information about the U-Boot
mailing list