linux/drivers/char/hw_random
Ilpo Järvinen af1d27f88e 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:40:58 +02:00
..
amd-rng.c hwrng: amd - Convert PCIBIOS_* return codes to errnos 2024-08-19 05:40:58 +02:00
atmel-rng.c hwrng: atmel - disable trng on failure path 2022-04-08 14:40:01 +02:00
ba431-rng.c
bcm2835-rng.c
cavium-rng-vf.c hwrng: cavium - Check health status while reading random data 2022-04-08 14:39:59 +02:00
cavium-rng.c hwrng: cavium - Check health status while reading random data 2022-04-08 14:39:59 +02:00
cctrng.c
cctrng.h
core.c hwrng: core - Fix page fault dead lock on mmap-ed hwrng 2024-02-23 08:41:52 +01:00
exynos-trng.c
geode-rng.c hwrng: geode - fix accessing registers 2023-11-20 11:06:50 +01:00
hisi-rng.c
hisi-trng-v2.c
imx-rngc.c hwrng: imx-rngc - fix the timeout for init and self check 2023-07-27 08:44:27 +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:20:09 +02:00
ixp4xx-rng.c
Kconfig hwrng: cavium - HW_RANDOM_CAVIUM should depend on ARCH_THUNDER 2022-04-08 14:39:59 +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:20:08 +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:21:17 +02:00
omap-rng.c
optee-rng.c
pasemi-rng.c
pic32-rng.c
powernv-rng.c
pseries-rng.c
s390-trng.c
st-rng.c hwrng: st - keep clock enabled while hwrng is registered 2023-07-27 08:44:01 +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-27 08:43:59 +02:00
xgene-rng.c
xiphera-trng.c