We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e78921 commit 88447c5Copy full SHA for 88447c5
arch/x86/platform/efi/quirks.c
@@ -513,6 +513,9 @@ int __init efi_reuse_config(u64 tables, int nr_tables)
513
void *p, *tablep;
514
struct efi_setup_data *data;
515
516
+ if (nr_tables == 0)
517
+ return 0;
518
+
519
if (!efi_setup)
520
return 0;
521
drivers/firmware/efi/efi.c
@@ -636,6 +636,9 @@ int __init efi_config_init(efi_config_table_type_t *arch_tables)
636
void *config_tables;
637
int sz, ret;
638
639
+ if (efi.systab->nr_tables == 0)
640
641
642
if (efi_enabled(EFI_64BIT))
643
sz = sizeof(efi_config_table_64_t);
644
else
0 commit comments