summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/powerpc64/powerpc64/db_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc64/powerpc64/db_interface.c b/sys/arch/powerpc64/powerpc64/db_interface.c
index 02df878b041..7b026256d18 100644
--- a/sys/arch/powerpc64/powerpc64/db_interface.c
+++ b/sys/arch/powerpc64/powerpc64/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.1 2020/05/27 22:22:04 gkoehler Exp $ */
+/* $OpenBSD: db_interface.c,v 1.2 2020/06/26 12:45:22 jsg Exp $ */
/* $NetBSD: db_interface.c,v 1.12 2001/07/22 11:29:46 wiz Exp $ */
/*
@@ -57,7 +57,7 @@ db_machine_init(void)
* If an initrd exists, try to load symbols from there.
*/
node = fdt_find_node("/chosen");
- if (fdt_node_property(node, "linux,initrd-start", &prop_start) != 8 &&
+ if (fdt_node_property(node, "linux,initrd-start", &prop_start) != 8 ||
fdt_node_property(node, "linux,initrd-end", &prop_end) != 8) {
printf("[ no initrd ]\n");
return;