public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Hamachi not doing pci_enable before reading resources
@ 2001-02-07 19:17 davej
  2001-02-07 19:23 ` Jeff Garzik
  2001-02-07 19:50 ` Richard B. Johnson
  0 siblings, 2 replies; 9+ messages in thread
From: davej @ 2001-02-07 19:17 UTC (permalink / raw)
  To: Alan Cox; +Cc: becker, Linux Kernel Mailing List


Hi Alan,

 Another driver not doing pci_enable_device() early enough.

Dave.

-- 
| Dave Jones.        http://www.suse.de/~davej
| SuSE Labs

diff -urN --exclude-from=/home/davej/.exclude linux/drivers/net/hamachi.c linux-dj/drivers/net/hamachi.c
--- linux/drivers/net/hamachi.c	Wed Feb  7 12:42:39 2001
+++ linux-dj/drivers/net/hamachi.c	Wed Feb  7 19:09:31 2001
@@ -562,13 +562,14 @@
 	if (hamachi_debug > 0  &&  did_version++ == 0)
 		printk(version);

+	if (pci_enable_device(pdev))
+		return -EIO;
+
 	ioaddr = pci_resource_start(pdev, 0);
 #ifdef __alpha__				/* Really "64 bit addrs" */
 	ioaddr |= (pci_resource_start(pdev, 1) << 32);
 #endif

-	if (pci_enable_device(pdev))
-		return -EIO;
 	pci_set_master(pdev);

 	ioaddr = (long) ioremap(ioaddr, 0x400);


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [PATCH] Hamachi not doing pci_enable before reading resources
@ 2001-02-07 19:43 davej
  0 siblings, 0 replies; 9+ messages in thread
From: davej @ 2001-02-07 19:43 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Linux Kernel Mailing List


Jeff Garzik wrote..

> rejected -- 'irq' assigned a value before pci_enable_device called.
> better patch installed locally.

Ugh, yep missed that one.
Will look more carefully for those assignments.

Dave.

-- 
| Dave Jones.        http://www.suse.de/~davej
| SuSE Labs

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-02-07 22:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-07 19:17 [PATCH] Hamachi not doing pci_enable before reading resources davej
2001-02-07 19:23 ` Jeff Garzik
2001-02-07 19:50 ` Richard B. Johnson
2001-02-07 20:05   ` Jeff Garzik
2001-02-07 20:30     ` Richard B. Johnson
2001-02-07 20:42       ` Alan Cox
2001-02-07 20:50   ` Gérard Roudier
2001-02-07 22:18     ` Richard B. Johnson
  -- strict thread matches above, loose matches on Subject: below --
2001-02-07 19:43 davej

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox