diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-09-25 12:50:19 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-09-27 16:10:45 +0200 |
commit | b59c13d42f42811912fd08f32f11e68a8e708c00 (patch) | |
tree | d4473efb33014d1f4b05367f3bc4e8277e697ac7 /lib/efi_loader/efi_setup.c | |
parent | 796933510f84c1a29b1ef104d0962db6c0b7589c (diff) | |
download | u-boot-b59c13d42f42811912fd08f32f11e68a8e708c00.zip u-boot-b59c13d42f42811912fd08f32f11e68a8e708c00.tar.gz u-boot-b59c13d42f42811912fd08f32f11e68a8e708c00.tar.bz2 |
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 <logans@cottsay.net>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader/efi_setup.c')
-rw-r--r-- | lib/efi_loader/efi_setup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_setup.c index 6196c0a..45226c5 100644 --- a/lib/efi_loader/efi_setup.c +++ b/lib/efi_loader/efi_setup.c @@ -151,6 +151,11 @@ efi_status_t efi_init_obj_list(void) if (ret != EFI_SUCCESS) goto out; #endif + if (IS_ENABLED(CONFIG_EFI_RNG_PROTOCOL)) { + ret = efi_rng_register(); + if (ret != EFI_SUCCESS) + goto out; + } /* Initialize variable services */ ret = efi_init_variables(); if (ret != EFI_SUCCESS) |