From e46f2e61169b9cadc88e7df433c6c92d1c7fab54 Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Tue, 9 Jul 2024 22:36:40 +0200 Subject: [PATCH] Ensure that table header is not set before attempting to find ACPI table --- xtoskrnl/hl/acpi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xtoskrnl/hl/acpi.c b/xtoskrnl/hl/acpi.c index 13f1b5a..a04a4f1 100644 --- a/xtoskrnl/hl/acpi.c +++ b/xtoskrnl/hl/acpi.c @@ -452,6 +452,9 @@ HlpQueryAcpiTables(IN ULONG Signature, return STATUS_INVALID_PARAMETER; } + /* Ensure that table header is not set before attempting to find ACPI table */ + TableHeader = NULL; + /* Check if DSDT or FACS table requested */ if(Signature == ACPI_DSDT_SIGNATURE || Signature == ACPI_FACS_SIGNATURE) {