summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-10-22 12:11:37 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:02:21 +0100
commit2249f3d8296dfa39ecb72c252b2c95f46f59dc01 (patch)
treee5f2b03f2b44a8c5b43f8d04e04f0bd93fe02b0a /rust
parent96ef0372fccf14cf819a83dfca2f49ca93f2c337 (diff)
downloadlinux-2249f3d8296dfa39ecb72c252b2c95f46f59dc01.tar.gz
linux-2249f3d8296dfa39ecb72c252b2c95f46f59dc01.tar.bz2
linux-2249f3d8296dfa39ecb72c252b2c95f46f59dc01.zip
PCI: cpqphp: Fix PCIBIOS_* return value confusion
[ Upstream commit e2226dbc4a4919d9c8bd9293299b532090bdf020 ] Code in and related to PCI_RefinedAccessConfig() has three types of return type confusion: - PCI_RefinedAccessConfig() tests pci_bus_read_config_dword() return value against -1. - PCI_RefinedAccessConfig() returns both -1 and PCIBIOS_* return codes. - Callers of PCI_RefinedAccessConfig() only test for -1. Make PCI_RefinedAccessConfig() return PCIBIOS_* codes consistently and adapt callers accordingly. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Link: https://lore.kernel.org/r/20241022091140.3504-2-ilpo.jarvinen@linux.intel.com Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions