Skip to contentSkip to conversation

: Another Megaraid patch for 2.6 (please apply)

PATCH New Paul Wagland 1 participant 1 message Mar 15, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Another Megaraid patch for 2.6 (please apply)

Hi all,

This bug was discussed on linux-scsi a few weeks back, but it appears to have slipped through the cracks. This fix was originally proposed by Christoph Hellwig, but I am reposting it, since I have the hardware :-)

Anyway, the problem that this fixes is that megaraid doesn't set the moduler owner for the host_template, this means that the module can be removed, even when it is in use.

Cheers,
Paul

drivers/scsi/megaraid.c +1 -0
diff --recursive --ignore-all-space --unified linux-2.6.2.o/drivers/scsi/megaraid.c linux-2.6.2.megaraid/drivers/scsi/megaraid.c
@@ -4614,6 +4614,7 @@
 }
 
 static struct scsi_host_template megaraid_template = {
+	.module				= THIS_MODULE,
 	.name				= "MegaRAID",
 	.proc_name			= "megaraid",
 	.info				= megaraid_info,