diff options
author | 2024-05-27 16:22:35 +0300 | |
---|---|---|
committer | 2024-06-04 11:29:52 +0200 | |
commit | f8367a74aebf88dc8b58a0db6a6c90b4cb8fc9d3 (patch) | |
tree | 9f9431411a06763239e737a5b24fbc77ca6238aa /scripts/generate_rust_analyzer.py | |
parent | EDAC/amd64: Convert PCIBIOS_* return codes to errnos (diff) | |
download | linux-rng-f8367a74aebf88dc8b58a0db6a6c90b4cb8fc9d3.tar.xz linux-rng-f8367a74aebf88dc8b58a0db6a6c90b4cb8fc9d3.zip |
EDAC/igen6: Convert PCIBIOS_* return codes to errnos
errcmd_enable_error_reporting() uses pci_{read,write}_config_word()
that return PCIBIOS_* codes. The return code is then returned all the
way into the probe function igen6_probe() that returns it as is. The
probe functions, however, should return normal errnos.
Convert PCIBIOS_* returns code using pcibios_err_to_errno() into normal
errno before returning it from errcmd_enable_error_reporting().
Fixes: 10590a9d4f23 ("EDAC/igen6: Add EDAC driver for Intel client SoCs using IBECC")
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240527132236.13875-2-ilpo.jarvinen@linux.intel.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions