summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2021-03-16 22:08:55 +0000
committerkettenis <kettenis@openbsd.org>2021-03-16 22:08:55 +0000
commit8a40bc3fefb1097e8b6baf6b4e4d8af44d3d356c (patch)
tree1f2f30a5ca7941b8864c87cfac237bda00fcce3e
parentMake sure that switching the console from serial to framebuffer works (diff)
downloadwireguard-openbsd-8a40bc3fefb1097e8b6baf6b4e4d8af44d3d356c.tar.xz
wireguard-openbsd-8a40bc3fefb1097e8b6baf6b4e4d8af44d3d356c.zip
Node without a "status" property should be considered enabled as well.
Same change made to arm64 a week ago.
-rw-r--r--sys/arch/armv7/stand/efiboot/efiboot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/armv7/stand/efiboot/efiboot.c b/sys/arch/armv7/stand/efiboot/efiboot.c
index 71d3db1e945..04f791b2d4d 100644
--- a/sys/arch/armv7/stand/efiboot/efiboot.c
+++ b/sys/arch/armv7/stand/efiboot/efiboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: efiboot.c,v 1.32 2021/03/16 22:02:27 kettenis Exp $ */
+/* $OpenBSD: efiboot.c,v 1.33 2021/03/16 22:08:55 kettenis Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@ -352,7 +352,7 @@ efi_framebuffer(void)
child = fdt_next_node(child)) {
if (!fdt_node_is_compatible(child, "simple-framebuffer"))
continue;
- if (fdt_node_property(child, "status", &prop) &&
+ if (!fdt_node_property(child, "status", &prop) ||
strcmp(prop, "okay") == 0) {
strlcpy(framebuffer_path, "/chosen/",
sizeof(framebuffer_path));
@@ -366,7 +366,7 @@ efi_framebuffer(void)
child = fdt_next_node(child)) {
if (!fdt_node_is_compatible(child, "simple-framebuffer"))
continue;
- if (fdt_node_property(child, "status", &prop) &&
+ if (!fdt_node_property(child, "status", &prop) ||
strcmp(prop, "okay") == 0) {
strlcpy(framebuffer_path, "/",
sizeof(framebuffer_path));