aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorGavin Shan <[email protected]>2014-05-21 05:23:30 +0000
committerBjorn Helgaas <[email protected]>2014-05-27 23:10:16 +0000
commitd97ffe236894856d08146390ef3fbe6448a8ac2b (patch)
tree0935d466ca429a5b61a9b82ed44a6c623175964f /net/unix/af_unix.c
parentPCI: Turn pcibios_penalize_isa_irq() into a weak function (diff)
downloadkernel-d97ffe236894856d08146390ef3fbe6448a8ac2b.tar.gz
kernel-d97ffe236894856d08146390ef3fbe6448a8ac2b.zip
PCI: Fix return value from pci_user_{read,write}_config_*()
The PCI user-space config accessors pci_user_{read,write}_config_*() return negative error numbers, which were introduced by commit 34e3207205ef ("PCI: handle positive error codes"). That patch converted all positive error numbers from platform-specific PCI config accessors to -EINVAL, which means the callers don't know anything about the specific cause of the failure. The patch fixes the issue by converting the positive PCIBIOS_* error values to generic negative error numbers with pcibios_err_to_errno(). [bhelgaas: changelog] Signed-off-by: Gavin Shan <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Greg Thelen <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions