]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: fix memory freeing in efi_get_dp_from_boot()
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Mon, 12 Aug 2024 20:57:59 +0000 (23:57 +0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 24 Aug 2024 09:32:43 +0000 (11:32 +0200)
commit3a8ad050aa8b1663316952d1d4bebdb5f4911160
tree5b917956d47544780a5cc877450aea3f98358150
parenta481740629af5e51732b86b6ead61dc5aa5a440d
efi_loader: fix memory freeing in efi_get_dp_from_boot()

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@linaro.org>
Reviewed-by: Heinric Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_helper.c