Use newly minted efi_devpath_same_disk() instead of

efi_devpath_match(). This fixes a regression in r347193.

Reported by: Tomoaki AOKI
Differential Revision: https://reviews.freebsd.org/D20513
This commit is contained in:
Warner Losh 2019-06-04 18:36:12 +00:00
parent 83ffeb8b52
commit b5f3ad3ad1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348659

View File

@ -273,7 +273,7 @@ probe_handle(EFI_HANDLE h, EFI_DEVICE_PATH *imgpath, BOOLEAN *preferred)
if (!blkio->Media->LogicalPartition)
return (EFI_UNSUPPORTED);
*preferred = efi_devpath_match(imgpath, devpath);
*preferred = efi_devpath_same_disk(imgpath, devpath);
/* Run through each module, see if it can load this partition */
devinfo = malloc(sizeof(*devinfo));