]> git.baikalelectronics.ru Git - kernel.git/commit
efi: Allow the number of EFI configuration tables entries to be zero
authorRob Bradford <robert.bradford@intel.com>
Sat, 25 May 2019 11:25:59 +0000 (13:25 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 25 May 2019 11:48:17 +0000 (13:48 +0200)
commitac58603dabf441c698810d4a829f28a5425974a7
treecee45ba436e2cd3dda721a76d23a2e8c8ef4ecf7
parentaf850424cd90f579570dec7a08c39e26e71062d9
efi: Allow the number of EFI configuration tables entries to be zero

Only try and access the EFI configuration tables if there there are any
reported. This allows EFI to be continued to used on systems where there
are no configuration table entries.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Gen Zhang <blackgod016574@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20190525112559.7917-3-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/efi/quirks.c
drivers/firmware/efi/efi.c