linux/drivers/char
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
..
agp parisc: sba: Fix compile warning wrt list of SBA devices 2023-10-10 21:53:32 +02:00
hw_random hwrng: amd - Convert PCIBIOS_* return codes to errnos 2024-08-19 05:40:58 +02:00
ipmi ipmi_si: fix a memleak in try_smi_init() 2023-09-19 12:20:21 +02:00
mwave char/mwave: Adjust io port register size 2022-01-27 10:54:06 +01:00
pcmcia char: pcmcia: error out if 'num_bytes_read' is greater than 4 in set_protocol() 2021-07-14 16:56:39 +02:00
tpm char: tpm: Fix possible memory leak in tpm_bios_measurements_open() 2024-08-19 05:40:55 +02:00
xilinx_hwicap
xillybus
adi.c
apm-emulation.c
applicom.c
applicom.h
bsr.c
ds1620.c
dsp56k.c
dtlk.c
hangcheck-timer.c
hpet.c hpet: Support 32-bit userspace 2024-07-18 13:05:49 +02:00
Kconfig random: credit cpu and bootloader seeds by default 2022-06-22 14:13:15 +02:00
lp.c
Makefile
mem.c random: restore O_NONBLOCK support 2022-10-15 07:55:54 +02:00
misc.c
mspec.c
nsc_gpio.c
nvram.c
nwbutton.c
nwbutton.h
nwflash.c
pc8736x_gpio.c
powernv-op-panel.c
ppdev.c ppdev: Add an error check in register_device 2024-06-16 13:32:20 +02:00
ps3flash.c
random.c random: use expired timer rather than wq for mixing fast pool 2022-10-15 07:55:55 +02:00
raw.c
scx200_gpio.c
sonypi.c
tb0219.c
tlclk.c
toshiba.c
ttyprintk.c ttyprintk: Add TTY hangup callback. 2021-05-14 09:50:21 +02:00
uv_mmtimer.c
virtio_console.c virtio_console: eliminate anonymous module_init & module_exit 2022-04-13 21:01:02 +02:00