From 4302e0fb7fa5b071e30f3cfb68e85155b3d69d9b Mon Sep 17 00:00:00 2001 From: Kenji Kaneshige Date: Thu, 17 Jun 2010 10:42:44 +0900 Subject: PCI: fix wrong memory address handling in MSI-X Use resource_size_t for MMIO address instead of unsigned long. Otherwise, higher 32-bits of MMIO address are cleared unexpectedly in x86-32 PAE. Acked-by: Matthew Wilcox Signed-off-by: Kenji Kaneshige Signed-off-by: Jesse Barnes --- drivers/pci/msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/pci') diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 77b68eaf021..6a0f2f07f95 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -435,7 +435,7 @@ static int msi_capability_init(struct pci_dev *dev, int nvec) static void __iomem *msix_map_region(struct pci_dev *dev, unsigned pos, unsigned nr_entries) { - unsigned long phys_addr; + resource_size_t phys_addr; u32 table_offset; u8 bir; -- cgit v1.2.3-70-g09d2