diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-06-02 14:06:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-06-02 14:06:13 -0400 |
commit | af0424522dbb235ee7f1eb84bce074004c9d8b51 (patch) | |
tree | c1894636cdd4e954c0a89d2741998b1f5227c728 /arch/x86/platform/efi/quirks.c | |
parent | 4fb5741c7c5defd88046f570694fc3249479f36f (diff) | |
parent | 88447c5b93d98be847f428c39ba589779a59eb83 (diff) |
Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull EFI fixes from Ingo Molnar:
"Two EFI fixes: a quirk for weird systabs, plus add more robust error
handling in the old 1:1 mapping code"
* 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
efi: Allow the number of EFI configuration tables entries to be zero
efi/x86/Add missing error handling to old_memmap 1:1 mapping code
Diffstat (limited to 'arch/x86/platform/efi/quirks.c')
-rw-r--r-- | arch/x86/platform/efi/quirks.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/platform/efi/quirks.c b/arch/x86/platform/efi/quirks.c index feb77777c8b8..632b83885867 100644 --- a/arch/x86/platform/efi/quirks.c +++ b/arch/x86/platform/efi/quirks.c | |||
@@ -513,6 +513,9 @@ int __init efi_reuse_config(u64 tables, int nr_tables) | |||
513 | void *p, *tablep; | 513 | void *p, *tablep; |
514 | struct efi_setup_data *data; | 514 | struct efi_setup_data *data; |
515 | 515 | ||
516 | if (nr_tables == 0) | ||
517 | return 0; | ||
518 | |||
516 | if (!efi_setup) | 519 | if (!efi_setup) |
517 | return 0; | 520 | return 0; |
518 | 521 | ||