From d8c37c3a16b7033de5d73c841cce4bc04050bc6e Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Tue, 28 Apr 2015 16:06:58 +0000 Subject: [PATCH] There may not be an FACS table, check for this before accessing it. Sponsored by: The FreeBSD Foundation --- sys/dev/acpica/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 47bc79153dad..7796fbe39ef6 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -606,7 +606,7 @@ acpi_attach(device_t dev) sc->acpi_handle_reboot = 1; /* Only enable S4BIOS by default if the FACS says it is available. */ - if (AcpiGbl_FACS->Flags & ACPI_FACS_S4_BIOS_PRESENT) + if (AcpiGbl_FACS != NULL && AcpiGbl_FACS->Flags & ACPI_FACS_S4_BIOS_PRESENT) sc->acpi_s4bios = 1; /* Probe all supported sleep states. */