]> git.baikalelectronics.ru Git - uboot.git/commit
eficonfig: carve out efi_get_next_variable_name_int calls
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Mon, 19 Dec 2022 02:33:12 +0000 (11:33 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 20 Dec 2022 15:06:48 +0000 (16:06 +0100)
commit517cfe17f56543c0a50adfd26d3cb290301571b7
tree971a456a5ae2fe26b959d56b6db3a7a64060e0d7
parentd636b4e0046532e7da5f613742f27ea7c3c1826a
eficonfig: carve out efi_get_next_variable_name_int calls

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@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
cmd/eficonfig.c
include/efi_loader.h
lib/efi_loader/efi_helper.c