Ubuntu-focal-kernel/drivers/char/hw_random
Ilpo Järvinen 6238ab0f15 hwrng: amd - Convert PCIBIOS_* return codes to errnos
BugLink: https://bugs.launchpad.net/bugs/2078388

commit 14cba6ace79627a57fb9058582b03f0ed3832390 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>
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2024-09-27 10:50:15 +02:00
..
Kconfig
Makefile
amd-rng.c hwrng: amd - Convert PCIBIOS_* return codes to errnos 2024-09-27 10:50:15 +02:00
atmel-rng.c
bcm2835-rng.c
cavium-rng-vf.c
cavium-rng.c
core.c hwrng: core - Fix page fault dead lock on mmap-ed hwrng 2024-03-28 15:18:30 +01:00
exynos-trng.c
geode-rng.c hwrng: geode - fix accessing registers 2024-02-02 14:13:03 +01:00
hisi-rng.c
hisi-trng-v2.c
imx-rngc.c hwrng: imx-rngc - fix the timeout for init and self check 2023-10-02 12:12:13 +02:00
intel-rng.c
iproc-rng200.c hwrng: iproc-rng200 - Implement suspend and resume calls 2023-10-30 11:42:08 +01:00
ixp4xx-rng.c
ks-sa-rng.c
meson-rng.c
mtk-rng.c
mxc-rnga.c
n2-asm.S
n2-drv.c
n2rng.h
nomadik-rng.c
octeon-rng.c
omap-rng.c
omap3-rom-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-10-02 12:12:06 +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-10-02 12:12:05 +02:00
xgene-rng.c