efi_loader: non-volatile variable not deleted from file
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 2 Nov 2020 18:32:24 +0000 (19:32 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 9 Nov 2020 16:28:17 +0000 (17:28 +0100)
commitab02c3fec499e89e09b0f024ef263821e4b5d918
tree171a821e9cbeee082fa058e2cde5ae3750a08fd0
parentb055a05b989cb67484d2cef62b784896914ceb58
efi_loader: non-volatile variable not deleted from file

When deleting a non-volatile variable it was deleted from memory but the
deletion was not persisted to the file system.

SetVariable() may be called with attributes == 0 to delete a variable. To
determine if the deletion shall be persisted we have to consider the
non-volatile flag in the attributes of the deleted variable and not the
value passed in the call parameter.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_variable.c