summaryrefslogtreecommitdiffstats
path: root/drivers/edac/highbank_l2_edac.c
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-05-27 15:22:34 +0200
committerBorislav Petkov (AMD) <bp@alien8.de>2024-06-04 11:24:16 +0200
commit3ec8ebd8a5b782d56347ae884de880af26f93996 (patch)
tree8d0b2d021f9f638954c84a55b05bcfdac2ae9c57 /drivers/edac/highbank_l2_edac.c
parentLinux 6.10-rc2 (diff)
downloadlinux-3ec8ebd8a5b782d56347ae884de880af26f93996.tar.xz
linux-3ec8ebd8a5b782d56347ae884de880af26f93996.zip
EDAC/amd64: Convert PCIBIOS_* return codes to errnos
gpu_get_node_map() uses pci_read_config_dword() that returns PCIBIOS_* codes. The return code is then returned all the way into the module init function amd64_edac_init() that returns it as is. The module init functions, however, should return normal errnos. Convert PCIBIOS_* returns code using pcibios_err_to_errno() into normal errno before returning it from gpu_get_node_map(). For consistency, convert also the other similar cases which return PCIBIOS_* codes even if they do not have any bugs at the moment. Fixes: 4251566ebc1c ("EDAC/amd64: Cache and use GPU node map") Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240527132236.13875-1-ilpo.jarvinen@linux.intel.com
Diffstat (limited to 'drivers/edac/highbank_l2_edac.c')
0 files changed, 0 insertions, 0 deletions