From 6b43d124695d88def00b7895299e499115104923 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 12 Apr 2024 16:10:16 +0300 Subject: [PATCH] Kernel: AML package doesn't mark ZeroOp as NullName reference --- kernel/include/kernel/ACPI/AML/Package.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/include/kernel/ACPI/AML/Package.h b/kernel/include/kernel/ACPI/AML/Package.h index 025450dcf4..3fd627cbe3 100644 --- a/kernel/include/kernel/ACPI/AML/Package.h +++ b/kernel/include/kernel/ACPI/AML/Package.h @@ -71,7 +71,7 @@ namespace Kernel::ACPI::AML BAN::RefPtr element; // Store name strings as references - if (AML::NameString::can_parse(package_context.aml_data)) + if (package_context.aml_data[0] != 0x00 && AML::NameString::can_parse(package_context.aml_data)) { auto name = AML::NameString::parse(package_context.aml_data); if (!name.has_value())