summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/efi-bgrt.c
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2017-06-26 11:54:27 +0200
committerWill Deacon <will.deacon@arm.com>2017-06-26 11:54:27 +0200
commit3edb1dd13ce6f6480c1f2bffc47a49cf959fa9cb (patch)
tree81e5823a1c84a0131dc110f711f3c1416b4df985 /drivers/firmware/efi/efi-bgrt.c
parentMerge branch 'perf/updates' into aarch64/for-next/core (diff)
parentacpi: apei: check for pending errors when probing GHES entries (diff)
downloadlinux-3edb1dd13ce6f6480c1f2bffc47a49cf959fa9cb.tar.xz
linux-3edb1dd13ce6f6480c1f2bffc47a49cf959fa9cb.zip
Merge branch 'aarch64/for-next/ras-apei' into aarch64/for-next/core
Merge in arm64 ACPI RAS support (APEI/GHES) from Tyler Baicar.
Diffstat (limited to 'drivers/firmware/efi/efi-bgrt.c')
-rw-r--r--drivers/firmware/efi/efi-bgrt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firmware/efi/efi-bgrt.c b/drivers/firmware/efi/efi-bgrt.c
index 04ca8764f0c0..8bf27323f7a3 100644
--- a/drivers/firmware/efi/efi-bgrt.c
+++ b/drivers/firmware/efi/efi-bgrt.c
@@ -36,6 +36,9 @@ void __init efi_bgrt_init(struct acpi_table_header *table)
if (acpi_disabled)
return;
+ if (!efi_enabled(EFI_BOOT))
+ return;
+
if (table->length < sizeof(bgrt_tab)) {
pr_notice("Ignoring BGRT: invalid length %u (expected %zu)\n",
table->length, sizeof(bgrt_tab));