Skip to contentSkip to conversation

2.5.39 isapnp causes drivers/base/core.c:attach() oops

PATCH New Mikael Pettersson 1 participant 1 message Sep 29, 2002 Pnp support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.39 isapnp causes drivers/base/core.c:attach() oops

In 2.5.39, isapnp's call to device_register() causes an oops in drivers/base/core.c:attach() since the isapnp_device_driver.devices list isn't initialised. The patch below initialises this list, which cures the oops but may or may not be the preferred long-term fix.

/Mikael

drivers/pnp/isapnp.c renamed from drivers/pnp/isapnp.c.~1~ +2 -0
@@ -2288,6 +2288,8 @@
 	struct pci_bus *card;
 	struct pci_dev *parent = pci_find_class(PCI_CLASS_BRIDGE_ISA << 8, NULL);
 
+	INIT_LIST_HEAD(&isapnp_device_driver.devices);
+
 	isapnp_for_each_card(card) {
 		struct list_head *devlist;