Messages in this thread Patch in this message | | | Subject | [PATCH][BUGFIX] : Megaraid patch for 2.6 (please apply) | From | Paul Wagland <> | Date | Wed, 10 Mar 2004 09:53:27 +0100 |
| |
Hi all,
I know that LSI are working on an updated driver for 2.6, but would really like to see this bug fix placed in the main tree before then, whenever then happens to be.
This patch fixes the problem of the /proc entries for this driver being created in the wrong location.
Cheers, Paul
diff --recursive --ignore-all-space --unified linux-2.6.2.o/drivers/scsi/megaraid.c linux-2.6.2.megaraid/drivers/scsi/megaraid.c --- linux-2.6.2.o/drivers/scsi/megaraid.c 2004-02-20 01:32:21.000000000 +0100 +++ linux-2.6.2.megaraid/drivers/scsi/megaraid.c 2004-02-20 01:32:26.000000000 +0100 @@ -5119,10 +5119,6 @@ if (max_mbox_busy_wait > MBOX_BUSY_WAIT) max_mbox_busy_wait = MBOX_BUSY_WAIT; - error = pci_module_init(&megaraid_pci_driver); - if (error) - return error; - #ifdef CONFIG_PROC_FS mega_proc_dir_entry = proc_mkdir("megaraid", &proc_root); if (!mega_proc_dir_entry) { @@ -5130,6 +5126,13 @@ "megaraid: failed to create megaraid root\n"); } #endif + error = pci_module_init(&megaraid_pci_driver); + if (error) { +#ifdef CONFIG_PROC_FS + remove_proc_entry("megaraid", &proc_root); +#endif + return error; + } /* * Register the driver as a character device, for applications[unhandled content-type:application/pgp-signature] | |