diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-10-03 09:47:51 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-10-06 22:54:57 +0200 |
commit | 16b27b67c5002c13d84bdf68727954ec765f0731 (patch) | |
tree | 46ab97420a9d4e14769d941a2feb5fabbfb2fb76 /include | |
parent | 874490c7ec7a05a429b951720f11a3b966ec0572 (diff) | |
download | u-boot-16b27b67c5002c13d84bdf68727954ec765f0731.zip u-boot-16b27b67c5002c13d84bdf68727954ec765f0731.tar.gz u-boot-16b27b67c5002c13d84bdf68727954ec765f0731.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/efi_loader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index 8c45e3e..6f78f77 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -708,6 +708,7 @@ const char *guid_to_sha_str(const efi_guid_t *guid); int algo_to_len(const char *algo); int efi_link_dev(efi_handle_t handle, struct udevice *dev); +int efi_unlink_dev(efi_handle_t handle); /** * efi_size_in_pages() - convert size in bytes to size in pages |