From: Gavin Shan Date: Wed, 21 May 2014 05:23:30 +0000 (+1000) Subject: PCI: Fix return value from pci_user_{read,write}_config_*() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~38^2~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d97ffe236894856d08146390ef3fbe6448a8ac2b;p=pandora-kernel.git 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 Signed-off-by: Bjorn Helgaas Acked-by: Greg Thelen --- Reading git-diff-tree failed