diff options
author | andrew <andrew@FreeBSD.org> | 2015-04-28 16:06:58 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2015-04-28 16:06:58 +0000 |
commit | 1a7037c6cf887689fbb6b9bbb5be75bd1c2dca52 (patch) | |
tree | 52fe7c0f9fd56d0daf457c988c9e777fb25e1f21 /sys/dev/acpica/acpi.c | |
parent | 27341016bc00986076700802936de2fd8320e3e6 (diff) | |
download | FreeBSD-src-1a7037c6cf887689fbb6b9bbb5be75bd1c2dca52.zip FreeBSD-src-1a7037c6cf887689fbb6b9bbb5be75bd1c2dca52.tar.gz |
There may not be an FACS table, check for this before accessing it.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/dev/acpica/acpi.c')
-rw-r--r-- | sys/dev/acpica/acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |