diff mbox

[BUG] PCI: fix wrong memory address handling in MSI-X

Message ID 4C197D94.1060407@jp.fujitsu.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Kenji Kaneshige June 17, 2010, 1:42 a.m. UTC
None
diff mbox

Patch

Index: linux-2.6.34/drivers/pci/msi.c
===================================================================
--- linux-2.6.34.orig/drivers/pci/msi.c	2010-06-15 05:33:09.077424885 +0900
+++ linux-2.6.34/drivers/pci/msi.c	2010-06-15 05:33:26.428484041 +0900
@@ -435,7 +435,7 @@ 
 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;