[PATCH] efi_loader: fix memory freeing in efi_get_dp_from_boot()

Simon Glass sjg at chromium.org
Sun Sep 1 22:10:04 CEST 2024


On Mon, 12 Aug 2024 at 14:58, Ilias Apalodimas
<ilias.apalodimas at linaro.org> wrote:
>
> efi_get_var() allocates memory which must be freed after the variable is
> used. Since the device path is duplicated after we deserialize the load
> options free the memory used for the variable payload
>
> Fixes: db61e70e0d2a efi_loader: efi_dp_from_lo() should skip VenMedia node
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> ---
>  lib/efi_loader/efi_helper.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list