Skip to contentSkip to conversation

orinoco_nortel: Fix incorrect PCI resource use

PATCH New Pavel Roskin 1 participant 1 message Dec 16, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 orinoco_nortel: Fix incorrect PCI resource use

orinoco_nortel was broken during conversion to iomem API. Wrong PCI BAR
is used for chipset registers. Reported by Tomas Novak <[email protected]>

---
Please push to 2.6.15 or 2.6.15.x. We don't want broken drivers in the kernel.

(quoted diff) +0 -0

b/drivers/net/wireless/orinoco_nortel.c
index d8afd51..d1a670b 100644

drivers/net/wireless/orinoco_nortel.c +1 -1
@@ -165,7 +167,7 @@ static int nortel_pci_init_one(struct pc
 		goto fail_resources;
 	}
 
-	iomem = pci_iomap(pdev, 3, 0);
+	iomem = pci_iomap(pdev, 2, 0);
 	if (!iomem) {
 		err = -ENOMEM;
 		goto fail_map_io;
Signature · 10 lines
Regards,
Pavel Roskin



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click