[lkml]   [2002]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] pci_do_scan_bus - 2.5.31

I've found a small problem in the patch I submitted last week to fix
pci_do_scan_bus. The pci_dev that was allocated was not properly
initialised and this could cause any number of problems with booting.

I've fixed that problem, and I also changed the BUG() to a panic() as
per Andi Kleen's suggestion.

Jason Zebchuk
Consensys RAIDZONE

--- linux-2.5.31/drivers/pci/probe.c Tue Aug 6 12:40:20 2002
+++ linux/drivers/pci/probe.c Mon Aug 19 09:41:43 2002
@@ -505,8 +505,8 @@
/* Create a device template */
dev0 = kmalloc(sizeof(struct pci_dev), GFP_ATOMIC);
if (dev0 == NULL)
- BUG();
- memset(dev0, 0, sizeof(dev0));
+ panic("Unable to allocate pci_dev!");
+ memset(dev0, 0, sizeof(*dev0));
dev0->bus = bus;
dev0->sysdata = bus->sysdata;
dev0->dev.parent = bus->dev;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.028 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site