svn commit: r282149 - head/sys/dev/acpica
Andrew Turner
andrew at FreeBSD.org
Tue Apr 28 16:06:59 UTC 2015
Author: andrew
Date: Tue Apr 28 16:06:58 2015
New Revision: 282149
URL: https://svnweb.freebsd.org/changeset/base/282149
Log:
There may not be an FACS table, check for this before accessing it.
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/dev/acpica/acpi.c
Modified: head/sys/dev/acpica/acpi.c
==============================================================================
--- head/sys/dev/acpica/acpi.c Tue Apr 28 15:32:59 2015 (r282148)
+++ head/sys/dev/acpica/acpi.c Tue Apr 28 16:06:58 2015 (r282149)
@@ -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. */
More information about the svn-src-head
mailing list