Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/arch/i386/stand/efiboot Pull up following revision(s)...



details:   https://anonhg.NetBSD.org/src/rev/7e1ecb1c7afe
branches:  netbsd-8
changeset: 852711:7e1ecb1c7afe
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jan 21 16:55:03 2020 +0000

description:
Pull up following revision(s) (requested by nonaka in ticket #1485):

        sys/arch/i386/stand/efiboot/devopen.c: revision 1.10
        sys/arch/i386/stand/efiboot/devopen.c: revision 1.11

fix indent.
x86 efiboot: Fixed the problem that /EFI/NetBSD/boot.cfg could not be loaded.

diffstat:

 sys/arch/i386/stand/efiboot/devopen.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 92b7ec29aaf4 -r 7e1ecb1c7afe sys/arch/i386/stand/efiboot/devopen.c
--- a/sys/arch/i386/stand/efiboot/devopen.c     Tue Jan 21 16:51:27 2020 +0000
+++ b/sys/arch/i386/stand/efiboot/devopen.c     Tue Jan 21 16:55:03 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: devopen.c,v 1.1.12.7 2019/12/17 12:19:49 martin Exp $   */
+/*     $NetBSD: devopen.c,v 1.1.12.8 2020/01/21 16:55:03 martin Exp $   */
 
 /*-
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -100,10 +100,10 @@
                *devname = "hd";
 
        (void)biosdisk_findpartition(biosdev, sector, partition, part_name);
-       if (*part_name != NULL) {
+       if (part_name != NULL && *part_name != NULL) {
                snprintf(savedevname, sizeof(savedevname),
                    "NAME=%s", *part_name);
-                       *devname = savedevname;
+               *devname = savedevname;
        }
 }
 



Home | Main Index | Thread Index | Old Index