From: kettenis Date: Tue, 9 Mar 2021 21:11:24 +0000 (+0000) Subject: Node without a "status" property should be considered enabled as well. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5028e024f96627d9de640f631b3f4f25147d6f01;p=openbsd Node without a "status" property should be considered enabled as well. ok patrick@ --- diff --git a/sys/arch/arm64/stand/efiboot/efiboot.c b/sys/arch/arm64/stand/efiboot/efiboot.c index db75d09e825..88612206626 100644 --- a/sys/arch/arm64/stand/efiboot/efiboot.c +++ b/sys/arch/arm64/stand/efiboot/efiboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efiboot.c,v 1.30 2021/02/09 23:58:33 kettenis Exp $ */ +/* $OpenBSD: efiboot.c,v 1.31 2021/03/09 21:11:24 kettenis Exp $ */ /* * Copyright (c) 2015 YASUOKA Masahiko @@ -358,7 +358,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)); @@ -372,7 +372,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));