Re: 2.5.4-pre1 (decoded) oops on boot in device_create_file

From: Peter Osterlund (petero2@telia.com)
Date: Thu Feb 07 2002 - 17:22:36 EST


Alessandro Suardi <alessandro.suardi@oracle.com> writes:

> Must be my time of the year - first the kmem_cache_create one in
> 2.5.3-pre[45], now this one (should happen about PCI allocation
> of one of the Xircom CardBus resources):

I had the same problem with 2.5.4-pre2. The patch below makes my
laptop able to boot again, but I don't know if the patch is correct.

--- linux/drivers/pcmcia/cardbus.c.old Thu Feb 7 23:09:54 2002
+++ linux/drivers/pcmcia/cardbus.c Thu Feb 7 23:17:45 2002
@@ -281,6 +281,10 @@
 
                 pci_setup_device(dev);
 
+ strcpy(dev->dev.name, dev->name);
+ strcpy(dev->dev.bus_id, dev->slot_name);
+ device_register(&dev->dev);
+
                 /* FIXME: Do we need to enable the expansion ROM? */
                 for (r = 0; r < 7; r++) {
                         struct resource *res = dev->resource + r;

-- 
Peter Osterlund - petero2@telia.com
http://w1.894.telia.com/~u89404340
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Feb 07 2002 - 21:01:08 EST