efi_loader: function to unlink udevice and handle
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 3 Oct 2022 07:47:51 +0000 (09:47 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 6 Oct 2022 20:54:57 +0000 (22:54 +0200)
commit16b27b67c5002c13d84bdf68727954ec765f0731
tree46ab97420a9d4e14769d941a2feb5fabbfb2fb76
parent874490c7ec7a05a429b951720f11a3b966ec0572
efi_loader: function to unlink udevice and handle

When deleting a device or a handle we must remove the link between the two
to avoid dangling references.

Provide function efi_unlink_dev() for this purpose.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
include/efi_loader.h
lib/efi_loader/efi_helper.c