Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Apr 2015 16:06:59 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r282149 - head/sys/dev/acpica
Message-ID:  <201504281606.t3SG6xYm060726@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504281606.t3SG6xYm060726>