efi: Use more granular check for availability for variable services
authorArd Biesheuvel <ardb@kernel.org>
Thu, 23 Jan 2020 08:12:00 +0000 (09:12 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:59:42 +0000 (21:59 +0100)
commitbf67fad19e493bd3f7267b35b97b860280f87acc
treee5e5de60a3e45e341044059f880504f283b87d10
parentfe4db90a80cd12ebe4efe385d40d6636330149ed
efi: Use more granular check for availability for variable services

The UEFI spec rev 2.8 permits firmware implementations to support only
a subset of EFI runtime services at OS runtime (i.e., after the call to
ExitBootServices()), so let's take this into account in the drivers that
rely specifically on the availability of the EFI variable services.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/efi-pstore.c
drivers/firmware/efi/efi.c
drivers/firmware/efi/efivars.c
fs/efivarfs/super.c