Skip to content
Commit 75fb0cfc authored by Pierre Gondois's avatar Pierre Gondois Committed by mergify[bot]
Browse files

SecurityPkg/RngDxe: Conditionally install EFI_RNG_PROTOCOL



On Arm platforms, the number of available RNG algorithms is
dynamically detected and can be 0 in the absence of FEAT_RNG
and firmware TRNG.
In this case, the EFI_RNG_PROTOCOL should not be installed to
prevent from installing an empty protocol.

Signed-off-by: default avatarPierre Gondois <Pierre.Gondois@arm.com>
[ardb: return EFI_REQUEST_UNLOAD_IMAGE instead of an error]
Reviewed-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent bfb574db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment