From 17e0ed785751ae1e7f6df5166d074a25276279d5 Mon Sep 17 00:00:00 2001 From: Andy Gospodarek Date: Tue, 20 May 2008 14:55:39 -0400 Subject: [PATCH] ia64: fix pci_sal_read settings to check for correct segments RHBZ 309321 The incorrect value was included and a larger seg is valid (to deal with multiple pci-domains, etc). --- arch/ia64/pci/pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index f5051d5..5d4fc02 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c @@ -70,7 +70,7 @@ pci_sal_read (int seg, int bus, int devfn, int reg, int len, u32 *value) u64 addr, mode, data = 0; int result = 0; - if ((seg > 255) || (bus > 255) || (devfn > 255) || (reg > 4095)) + if (!value || (seg > 65535) || (bus > 255) || (devfn > 255) || (reg > 4095)) return -EINVAL; if ((seg | reg) <= 255) { -- 1.5.2.1