Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/efiboot Fix crash because of NULL pointe...
details: https://anonhg.NetBSD.org/src/rev/b0d747b71cdd
branches: trunk
changeset: 1026311:b0d747b71cdd
user: manu <manu%NetBSD.org@localhost>
date: Thu Nov 18 16:18:13 2021 +0000
description:
Fix crash because of NULL pointer reference
diffstat:
sys/arch/i386/stand/efiboot/devopen.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 4bfb716f9163 -r b0d747b71cdd sys/arch/i386/stand/efiboot/devopen.c
--- a/sys/arch/i386/stand/efiboot/devopen.c Thu Nov 18 16:17:40 2021 +0000
+++ b/sys/arch/i386/stand/efiboot/devopen.c Thu Nov 18 16:18:13 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: devopen.c,v 1.11 2020/01/18 19:25:58 nonaka Exp $ */
+/* $NetBSD: devopen.c,v 1.12 2021/11/18 16:18:13 manu Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -288,8 +288,9 @@
* biosdisk
*/
if (strcmp(devname, "esp") == 0) {
+ const char *part_name = NULL;
bios2dev(boot_biosdev, boot_biossector, &devname, &unit,
- &partition, NULL);
+ &partition, &part_name);
if (efidisk_get_efi_system_partition(boot_biosdev, &partition))
return ENXIO;
}
Home |
Main Index |
Thread Index |
Old Index