From 1a7037c6cf887689fbb6b9bbb5be75bd1c2dca52 Mon Sep 17 00:00:00 2001 From: andrew Date: Tue, 28 Apr 2015 16:06:58 +0000 Subject: 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(-) (limited to 'sys/dev/acpica/acpi.c') diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 47bc791..7796fbe 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. */ -- cgit v1.1