Module Name: src
Committed By: martin
Date: Thu Apr 18 15:33:44 UTC 2024
Modified Files:
src/sys/stand/efiboot [netbsd-9]: efiboot.c
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #1828):
sys/stand/efiboot/efiboot.c: revision 1.23
efiboot: Duplicate efi_bootdp before we clobber it in efi_net_probe.
Patch from jakllsch@. Makes Socionext Synquacer boot considerably
more reliably.
PR kern/58075
To generate a diff of this commit:
cvs rdiff -u -r1.16.4.1 -r1.16.4.2 src/sys/stand/efiboot/efiboot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/stand/efiboot/efiboot.c
diff -u src/sys/stand/efiboot/efiboot.c:1.16.4.1 src/sys/stand/efiboot/efiboot.c:1.16.4.2
--- src/sys/stand/efiboot/efiboot.c:1.16.4.1 Thu Sep 26 19:15:18 2019
+++ src/sys/stand/efiboot/efiboot.c Thu Apr 18 15:33:44 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: efiboot.c,v 1.16.4.1 2019/09/26 19:15:18 martin Exp $ */
+/* $NetBSD: efiboot.c,v 1.16.4.2 2024/04/18 15:33:44 martin Exp $ */
/*-
* Copyright (c) 2018 Jared McNeill <[email protected]>
@@ -84,6 +84,8 @@ efi_main(EFI_HANDLE imageHandle, EFI_SYS
status = uefi_call_wrapper(BS->HandleProtocol, 3, efi_li->DeviceHandle, &DevicePathProtocol, (void **)&efi_bootdp);
if (EFI_ERROR(status))
efi_bootdp = NULL;
+ else
+ efi_bootdp = DuplicateDevicePath(efi_bootdp);
#ifdef EFIBOOT_DEBUG
Print(L"Loaded image : 0x%" PRIxEFIPTR "\n", efi_li);