linux/drivers/char/hw_random
Ilpo Järvinen 6fa86b2a8b hwrng: amd - Convert PCIBIOS_* return codes to errnos
commit 14cba6ace7 upstream.

amd_rng_mod_init() uses pci_read_config_dword() that returns PCIBIOS_*
codes. The return code is then returned as is but amd_rng_mod_init() is
a module_init() function that should return normal errnos.

Convert PCIBIOS_* returns code using pcibios_err_to_errno() into normal
errno before returning it.

Fixes: 96d63c0297 ("[PATCH] Add AMD HW RNG driver")
Cc: stable@vger.kernel.org
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-19 05:45:15 +02:00
..
amd-rng.c hwrng: amd - Convert PCIBIOS_* return codes to errnos 2024-08-19 05:45:15 +02:00
arm_smccc_trng.c hwrng: arm-smccc-trng - fix NO_ENTROPY handling 2022-10-26 12:35:24 +02:00
atmel-rng.c hwrng: atmel - disable trng on failure path 2022-04-08 14:23:08 +02:00
ba431-rng.c
bcm2835-rng.c
cavium-rng-vf.c
cavium-rng.c
cctrng.c
cctrng.h
core.c hwrng: core - Fix page fault dead lock on mmap-ed hwrng 2024-02-23 08:54:24 +01:00
exynos-trng.c
geode-rng.c hwrng: geode - fix accessing registers 2023-11-20 11:08:22 +01:00
hisi-rng.c
imx-rngc.c hwrng: imx-rngc - fix the timeout for init and self check 2023-07-23 13:47:49 +02:00
ingenic-rng.c
ingenic-trng.c
intel-rng.c
iproc-rng200.c hwrng: iproc-rng200 - Implement suspend and resume calls 2023-09-19 12:22:33 +02:00
ixp4xx-rng.c
Kconfig hwrng: cavium - HW_RANDOM_CAVIUM should depend on ARCH_THUNDER 2022-04-08 14:23:05 +02:00
ks-sa-rng.c
Makefile
meson-rng.c
mtk-rng.c
mxc-rnga.c
n2-asm.S
n2-drv.c
n2rng.h
nomadik-rng.c hwrng: nomadik - keep clock enabled while hwrng is registered 2023-09-19 12:22:32 +02:00
npcm-rng.c
octeon-rng.c
omap3-rom-rng.c hwrng: omap3-rom - fix using wrong clk_disable() in omap_rom_rng_runtime_resume() 2022-06-09 10:23:11 +02:00
omap-rng.c
optee-rng.c
pasemi-rng.c
pic32-rng.c hwrng: pic32 - use devm_clk_get_enabled 2023-09-19 12:22:32 +02:00
powernv-rng.c
pseries-rng.c
s390-trng.c
st-rng.c hwrng: st - keep clock enabled while hwrng is registered 2023-07-23 13:47:17 +02:00
stm32-rng.c
timeriomem-rng.c
tx4939-rng.c
via-rng.c
virtio-rng.c hwrng: virtio - Fix race on data_avail and actual data 2023-07-23 13:47:14 +02:00
xgene-rng.c
xiphera-trng.c