Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/stand/efiboot If we could not query the DevicePathProtoc...



details:   https://anonhg.NetBSD.org/src/rev/43b395b1a8d0
branches:  trunk
changeset: 834711:43b395b1a8d0
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Aug 24 23:21:56 2018 +0000

description:
If we could not query the DevicePathProtocol handle, just select no default boot device instead of exiting.

diffstat:

 sys/stand/efiboot/efiboot.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2bd7e45c3a9e -r 43b395b1a8d0 sys/stand/efiboot/efiboot.c
--- a/sys/stand/efiboot/efiboot.c       Fri Aug 24 23:20:41 2018 +0000
+++ b/sys/stand/efiboot/efiboot.c       Fri Aug 24 23:21:56 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: efiboot.c,v 1.2 2018/08/24 20:51:15 jmcneill Exp $ */
+/* $NetBSD: efiboot.c,v 1.3 2018/08/24 23:21:56 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -62,7 +62,7 @@
                return status;
        status = uefi_call_wrapper(BS->HandleProtocol, 3, efi_li->DeviceHandle, &DevicePathProtocol, (void **)&efi_bootdp);
        if (EFI_ERROR(status))
-               return status;
+               efi_bootdp = NULL;
 
 #ifdef EFIBOOT_DEBUG
        Print(L"Loaded image      : 0x%lX\n", efi_li);



Home | Main Index | Thread Index | Old Index