aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2021-01-24 16:39:32 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-04 11:38:12 +0100
commit4ce87382d87c9bcbb677f6f7967be3ec917a735b (patch)
tree14392f85e8e1c3ce9f9830592ec8c28f0eb0339f /drivers/misc
parent6b34aa5204291c95ed2d14cba2fba4f2a3594c93 (diff)
downloadkernel_replicant_linux-4ce87382d87c9bcbb677f6f7967be3ec917a735b.tar.gz
kernel_replicant_linux-4ce87382d87c9bcbb677f6f7967be3ec917a735b.tar.bz2
kernel_replicant_linux-4ce87382d87c9bcbb677f6f7967be3ec917a735b.zip
PCI: Align checking of syscall user config accessors
[ Upstream commit ef9e4005cbaf022c6251263aa27836acccaef65d ] After 34e3207205ef ("PCI: handle positive error codes"), pci_user_read_config_*() and pci_user_write_config_*() return 0 or negative errno values, not PCIBIOS_* values like PCIBIOS_SUCCESSFUL or PCIBIOS_BAD_REGISTER_NUMBER. Remove comparisons with PCIBIOS_SUCCESSFUL and check only for non-zero. It happens that PCIBIOS_SUCCESSFUL is zero, so this is not a functional change, but it aligns this code with the user accessors. [bhelgaas: commit log] Fixes: 34e3207205ef ("PCI: handle positive error codes") Link: https://lore.kernel.org/r/f1220314-e518-1e18-bf94-8e6f8c703758@gmail.com Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions