efi_loader: fix efi_dp_find_obj()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 4 Mar 2022 07:20:00 +0000 (08:20 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 20 Mar 2022 10:03:06 +0000 (11:03 +0100)
commitc409593d0853da646194b0a3d65c8b45fe7cb6d4
treecde5993779801ea225a491a1580b985831f095d3
parent8399488672e8717d3aa454f9f67408f96168074f
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>
include/efi_loader.h
lib/efi_loader/efi_device_path.c