Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 23 Feb 2003 16:23:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 23 Feb 2003 16:23:47 -0500 Received: from pine.compass.com.ph ([202.70.96.37]:63017 "HELO pine.compass.com.ph") by vger.kernel.org with SMTP id ; Sun, 23 Feb 2003 16:23:45 -0500 Subject: Re: [Linux-fbdev-devel] cat /dev/fb1 produces kernel bug From: Antonino Daplas To: Siim Vahtre Cc: Linux Fbdev development list , Linux Kernel List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1046035982.1308.74.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 24 Feb 2003 05:34:24 +0800 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1358 Lines: 47 On Mon, 2003-02-24 at 02:07, Siim Vahtre wrote: > Call Trace: > [] kobject_register+0x58/0x70 > [] bus_add_driver+0x5b/0xe0 > [] driver_register+0x2f/0x40 > [] create_proc_entry+0x83/0xd0 > [] pci_register_driver+0x4b/0x60 > [] init+0x3f/0x160 > [] init+0x0/0x160 > [] kernel_thread_helper+0x5/0x18 > For a quick fix, try this: diff -Naur linux-2.5.61/drivers/video/riva/fbdev.c linux/drivers/video/riva/fbdev.c --- linux-2.5.61/drivers/video/riva/fbdev.c 2003-02-16 00:49:23.000000000 +0000 +++ linux/drivers/video/riva/fbdev.c 2003-02-23 21:30:50.000000000 +0000 @@ -1961,12 +1961,10 @@ int __init rivafb_init(void) { - int err; - err = pci_module_init(&rivafb_driver); - if (err) - return err; - pci_register_driver(&rivafb_driver); - return 0; + if (pci_register_driver(&rivafb_driver) > 0) + return 0; + pci_unregister_driver(&rivafb_driver); + return -ENODEV; } Or Try James' patch... http://phoenix.infradead.org/~jsimmons/fbdev.diff.gz ...and Geert's "Logo Updates" which he just sent recently. Tony - 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/