diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-03-04 08:20:00 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-03-20 11:03:06 +0100 |
commit | c409593d0853da646194b0a3d65c8b45fe7cb6d4 (patch) | |
tree | cde5993779801ea225a491a1580b985831f095d3 /include/efi_loader.h | |
parent | 8399488672e8717d3aa454f9f67408f96168074f (diff) | |
download | u-boot-c409593d0853da646194b0a3d65c8b45fe7cb6d4.tar.gz u-boot-c409593d0853da646194b0a3d65c8b45fe7cb6d4.tar.bz2 u-boot-c409593d0853da646194b0a3d65c8b45fe7cb6d4.zip |
efi_loader: fix efi_dp_find_obj()
efi_dp_find_obj() should not return any handle with a partially matching
device path but the handle with the maximum matching device path.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r-- | include/efi_loader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index 1ffcdfc485..6271d40125 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -730,8 +730,8 @@ struct efi_device_path *efi_dp_shorten(struct efi_device_path *dp); struct efi_device_path *efi_dp_next(const struct efi_device_path *dp); int efi_dp_match(const struct efi_device_path *a, const struct efi_device_path *b); -struct efi_object *efi_dp_find_obj(struct efi_device_path *dp, - struct efi_device_path **rem); +efi_handle_t efi_dp_find_obj(struct efi_device_path *dp, + struct efi_device_path **rem); /* get size of the first device path instance excluding end node */ efi_uintn_t efi_dp_instance_size(const struct efi_device_path *dp); /* size of multi-instance device path excluding end node */ |