Skip to content

Commit 5674d81

Browse files
committed
Merge tag 'efi-urgent-for-v5.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull EFI fix from Borislav Petkov: "Ensure that the EFI bootloader control module only probes successfully on systems that support the EFI SetVariable runtime service" [ Tag and commit from Ard Biesheuvel, forwarded by Borislav ] * tag 'efi-urgent-for-v5.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: efi: efibc: check for efivars write capability
2 parents 217eee7 + 4690832 commit 5674d81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/firmware/efi/efibc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static int __init efibc_init(void)
8484
{
8585
int ret;
8686

87-
if (!efi_enabled(EFI_RUNTIME_SERVICES))
87+
if (!efivars_kobject() || !efivar_supports_writes())
8888
return -ENODEV;
8989

9090
ret = register_reboot_notifier(&efibc_reboot_notifier);

0 commit comments

Comments
 (0)