diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-11-04 08:51:07 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-01-09 07:37:05 +0100 |
commit | 1351cd3b4b1b18cafa4893a44378ca6b1d091c8e (patch) | |
tree | 5d1b7f0c0567ea34219d64b1cd76aea0b6c23d0b /lib/efi_loader/efi_memory.c | |
parent | badef4cd4a9154776238cb1fad6d22bc93340303 (diff) |
rng: detect RISC-V Zkr RNG device in bind method
The existence of devices should be checked in the bind method and not in
the probe method. Adjust the RISC-V Zkr RNG driver accordingly.
Use ENOENT (and not ENODEV) to signal that the device is not available.
Fixes: ceec977ba1a9 ("rng: Provide a RNG based on the RISC-V Zkr ISA extension")
Reported-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib/efi_loader/efi_memory.c')
0 files changed, 0 insertions, 0 deletions