![]() | |||||||||||||
Messages in this thread Patch in this message |
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] | ||||||||||||
| Last update: 2005-03-22 13:01 [W:0.134 / U:1.010 seconds] ©2003-2008 Jasper Spaans | |||||||||||||