]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: Don't delete variable from memory if adding a new one failed
authorIlias Apalodimas <apalos@gmail.com>
Wed, 3 Apr 2024 15:43:53 +0000 (18:43 +0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 8 Apr 2024 11:03:37 +0000 (13:03 +0200)
commit6b0f194648f0f11281c01fb570d30931e6c3a13e
treea4c83030da005d3438c16268ee8e112f75b59b66
parente0fa2cf39cedd9297c16bc4ea4ff5c512bb4e0ec
efi_loader: Don't delete variable from memory if adding a new one failed

Our efi_var_mem_xxx() functions don't have a replace variant. Instead we
add a new variable and delete the old instance when trying to replace a
variable. Currently we delete the old version without checking the new
one got added

Signed-off-by: Ilias Apalodimas <apalos@gmail.com>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_variable.c