diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2022-10-06 16:08:44 +0300 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-10-06 22:54:58 +0200 |
commit | a75e8355eaa561ebd6128c92a90288d5d7c1f060 (patch) | |
tree | dd64567f7dee81a24da8d6b66daa84230d262fb9 /lib/efi_loader/efi_root_node.c | |
parent | 05c4c9e21ae6f45ba1091917fc55f3ebc3916909 (diff) |
cmd: replace efi_create_handle/add_protocol with InstallMultipleProtocol
In general handles should only be deleted if the last remaining protocol
is removed. Instead of explicitly calling
efi_create_handle -> efi_add_protocol -> efi_delete_handle which blindly
removes all protocols from a handle before removing it, use
InstallMultiple/UninstallMultiple which adheres to the EFI spec and only
deletes a handle if there are no additional protocols present
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader/efi_root_node.c')
0 files changed, 0 insertions, 0 deletions