* [patch] 2.5.18 pci/setup-bus.c: incorrect BUG() calls
@ 2002-05-27 16:51 Ivan Kokshaysky
0 siblings, 0 replies; only message in thread
From: Ivan Kokshaysky @ 2002-05-27 16:51 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
Previously assigned resources are perfectly valid - just silently
ignore them.
Ivan.
--- 2.5.18/drivers/pci/setup-bus.c Sat May 25 05:55:25 2002
+++ linux/drivers/pci/setup-bus.c Mon May 27 16:06:39 2002
@@ -228,10 +228,8 @@ pbus_size_io(struct pci_bus *bus)
struct resource *r = &dev->resource[i];
unsigned long r_size;
- if (!(r->flags & IORESOURCE_IO))
+ if (r->parent || !(r->flags & IORESOURCE_IO))
continue;
- if (r->parent)
- BUG();
r_size = r->end - r->start + 1;
if (r_size < 0x400)
@@ -283,10 +281,8 @@ pbus_size_mem(struct pci_bus *bus, unsig
struct resource *r = &dev->resource[i];
unsigned long r_size;
- if ((r->flags & mask) != type)
+ if (r->parent || (r->flags & mask) != type)
continue;
- if (r->parent)
- BUG();
r_size = r->end - r->start + 1;
/* For bridges size != alignment */
align = (i < PCI_BRIDGE_RESOURCES) ? r_size : r->start;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-05-27 16:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-27 16:51 [patch] 2.5.18 pci/setup-bus.c: incorrect BUG() calls Ivan Kokshaysky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®