x86/PCI: Fix the range check for IO resources
authorJiang Liu <jiang.liu@linux.intel.com>
Thu, 5 Feb 2015 05:44:45 +0000 (13:44 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 5 Feb 2015 14:09:25 +0000 (15:09 +0100)
commit812dbd9994f122629db73205a7f7f46b430a6360
treec224e43c42be39cce79090931a8a98a97be313bb
parent14d76b68f2819a1d0b50236a7e9e9f2ea69869d9
x86/PCI: Fix the range check for IO resources

The range check in setup_res() checks the IO range against
iomem_resource. That's just wrong.

Reworked based on Thomas original patch.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/pci/acpi.c