Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 7 Feb 2002 17:23:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 7 Feb 2002 17:23:17 -0500 Received: from mailc.telia.com ([194.22.190.4]:33239 "EHLO mailc.telia.com") by vger.kernel.org with ESMTP id ; Thu, 7 Feb 2002 17:23:02 -0500 To: Alessandro Suardi Cc: linux-kernel@vger.kernel.org, Patrick Mochel Subject: Re: 2.5.4-pre1 (decoded) oops on boot in device_create_file In-Reply-To: <3C61DCE5.6D05CF90@oracle.com> From: Peter Osterlund Date: 07 Feb 2002 23:22:36 +0100 In-Reply-To: <3C61DCE5.6D05CF90@oracle.com> Message-ID: Lines: 26 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Alessandro Suardi 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/