patch-2.4.13 linux/drivers/scsi/scsi.c
Next file: linux/drivers/scsi/scsi.h
Previous file: linux/drivers/scsi/qlogicfc.h
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Mon Oct 15 19:30:33 2001
-  Orig file: 
v2.4.12/linux/drivers/scsi/scsi.c
-  Orig date: 
Tue Oct  9 17:06:52 2001
diff -u --recursive --new-file v2.4.12/linux/drivers/scsi/scsi.c linux/drivers/scsi/scsi.c
@@ -1837,6 +1837,8 @@
 
 	pcount = next_scsi_host;
 
+	MOD_INC_USE_COUNT;
+
 	/* The detect routine must carefully spinunlock/spinlock if 
 	   it enables interrupts, since all interrupt handlers do 
 	   spinlock as well.
@@ -1966,8 +1968,6 @@
 	       (scsi_init_memory_start - scsi_memory_lower_value) / 1024,
 	       (scsi_memory_upper_value - scsi_init_memory_start) / 1024);
 #endif
-
-	MOD_INC_USE_COUNT;
 
 	if (out_of_space) {
 		scsi_unregister_host(tpnt);	/* easiest way to clean up?? */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)