Commit 374459a5 authored by Tony Luck's avatar Tony Luck

[IA64] pci_sal_read seg limit is 65535, not 255

Spotted by Andreas Schwab, fix from Matthew Wilcox
and David Mosberger.
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 8de1926c
......@@ -71,7 +71,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 ((seg > 65535) || (bus > 255) || (devfn > 255) || (reg > 4095))
return -EINVAL;
if ((seg | reg) <= 255) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment