From b59c13d42f42811912fd08f32f11e68a8e708c00 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Fri, 25 Sep 2020 12:50:19 +0200 Subject: efi_loader: installation of EFI_RNG_PROTOCOL Having an EFI_RNG_PROTOCOL without a backing RNG device leads to failure to boot Linux 5.8. Only install the EFI_RNG_PROTOCOL if we have a RNG device. Reported-by: Scott K Logan Cc: Neil Armstrong Cc: Ard Biesheuvel Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_root_node.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/efi_loader/efi_root_node.c') diff --git a/lib/efi_loader/efi_root_node.c b/lib/efi_loader/efi_root_node.c index 76d18fb1a4..f68b0fdc61 100644 --- a/lib/efi_loader/efi_root_node.c +++ b/lib/efi_loader/efi_root_node.c @@ -80,10 +80,6 @@ efi_status_t efi_root_node_register(void) /* HII configuration routing protocol */ &efi_guid_hii_config_routing_protocol, (void *)&efi_hii_config_routing, -#endif -#if CONFIG_IS_ENABLED(EFI_RNG_PROTOCOL) - &efi_guid_rng_protocol, - (void *)&efi_rng_protocol, #endif NULL)); efi_root->type = EFI_OBJECT_TYPE_U_BOOT_FIRMWARE; -- cgit