summaryrefslogtreecommitdiff
path: root/arch/x86/pci/irq.c
diff options
context:
space:
mode:
authorGreg Thelen <gthelen@google.com>2011-04-17 19:20:32 +0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2011-05-11 02:43:36 +0400
commit34e3207205ef492451cc5c53694d4772a9728b9f (patch)
tree342c517ddb92fd18ea823f9f194447b96846c441 /arch/x86/pci/irq.c
parentd97ecd819137118b4686a753415f93215a6edacf (diff)
downloadlinux-34e3207205ef492451cc5c53694d4772a9728b9f.tar.xz
PCI: handle positive error codes
Callers expect pci_user_{read,write}_config_*() to indicate errors by returning negative values. Prior to this change, the indicated routines could return positive error codes (e.g. PCIBIOS_BAD_REGISTER_NUMBER) which callers would mistakenly interpret as success. This change converts any non-zero return from the mentioned routines into unambiguous negative value return codes. Signed-off-by: Greg Thelen <gthelen@google.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch/x86/pci/irq.c')
0 files changed, 0 insertions, 0 deletions