kernel_samsung_a53x/drivers/char
Ilpo Järvinen 0e3ad906db hwrng: amd - Convert PCIBIOS_* return codes to errnos
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: 96d63c0297cc ("[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-11-23 23:20:14 +01:00
..
agp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_random hwrng: amd - Convert PCIBIOS_* return codes to errnos 2024-11-23 23:20:14 +01:00
ipmi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mwave Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcmcia Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tpm char: tpm: Fix possible memory leak in tpm_bios_measurements_open() 2024-11-23 23:20:12 +01:00
xilinx_hwicap Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xillybus Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
adi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
apm-emulation.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
applicom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
applicom.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bsr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ds1620.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dsp56k.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dtlk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hangcheck-timer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpet.c hpet: Support 32-bit userspace 2024-11-19 14:19:45 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
misc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mspec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsc_gpio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nvram.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nwbutton.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nwbutton.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nwflash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pc8736x_gpio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powernv-op-panel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ppdev.c ppdev: Add an error check in register_device 2024-11-19 12:27:04 +01:00
ps3flash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
random.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
raw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scx200_gpio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sonypi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tb0219.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tlclk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
toshiba.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ttyprintk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uv_mmtimer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
virtio_console.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00