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:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| amd-rng.c | ||
| atmel-rng.c | ||
| bcm2835-rng.c | ||
| cavium-rng-vf.c | ||
| cavium-rng.c | ||
| core.c | ||
| exynos-trng.c | ||
| geode-rng.c | ||
| hisi-rng.c | ||
| hisi-trng-v2.c | ||
| imx-rngc.c | ||
| intel-rng.c | ||
| iproc-rng200.c | ||
| 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 | ||
| stm32-rng.c | ||
| timeriomem-rng.c | ||
| tx4939-rng.c | ||
| via-rng.c | ||
| virtio-rng.c | ||
| xgene-rng.c | ||