aboutsummaryrefslogtreecommitdiff
path: root/drivers/firmware/efi/rci2-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firmware/efi/rci2-table.c')
-rw-r--r--drivers/firmware/efi/rci2-table.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firmware/efi/rci2-table.c b/drivers/firmware/efi/rci2-table.c
index 76b0c354a027..de1a9a1f9f14 100644
--- a/drivers/firmware/efi/rci2-table.c
+++ b/drivers/firmware/efi/rci2-table.c
@@ -81,6 +81,9 @@ static int __init efi_rci2_sysfs_init(void)
struct kobject *tables_kobj;
int ret = -ENOMEM;
+ if (rci2_table_phys == EFI_INVALID_TABLE_ADDR)
+ return 0;
+
rci2_base = memremap(rci2_table_phys,
sizeof(struct rci2_table_global_hdr),
MEMREMAP_WB);