efi_loader: installation of EFI_RNG_PROTOCOL
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 25 Sep 2020 10:50:19 +0000 (12:50 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 27 Sep 2020 14:10:45 +0000 (16:10 +0200)
commitb59c13d42f42811912fd08f32f11e68a8e708c00
treed4473efb33014d1f4b05367f3bc4e8277e697ac7
parent796933510f84c1a29b1ef104d0962db6c0b7589c
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>
include/efi_loader.h
lib/efi_loader/efi_rng.c
lib/efi_loader/efi_root_node.c
lib/efi_loader/efi_setup.c