summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/stand/efiboot/efipxe.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amd64/stand/efiboot/efipxe.c')
-rw-r--r--sys/arch/amd64/stand/efiboot/efipxe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/amd64/stand/efiboot/efipxe.c b/sys/arch/amd64/stand/efiboot/efipxe.c
index 47bdede487f..82c5a019688 100644
--- a/sys/arch/amd64/stand/efiboot/efipxe.c
+++ b/sys/arch/amd64/stand/efiboot/efipxe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: efipxe.c,v 1.5 2019/08/13 09:00:20 patrick Exp $ */
+/* $OpenBSD: efipxe.c,v 1.6 2019/08/20 23:38:19 patrick Exp $ */
/*
* Copyright (c) 2017 Patrick Wildt <patrick@blueri.se>
*
@@ -73,8 +73,8 @@ efi_pxeprobe(void)
if (status != EFI_SUCCESS)
continue;
- depth = efi_device_path_depth(efi_bootdp, MEDIA_DEVICE_PATH);
- if (efi_device_path_ncmp(efi_bootdp, dp0, depth))
+ depth = efi_device_path_depth(efi_bootdp, MESSAGING_DEVICE_PATH);
+ if (depth == -1 || efi_device_path_ncmp(efi_bootdp, dp0, depth))
continue;
status = EFI_CALL(BS->HandleProtocol, handles[i], &pxe_guid,