patch-2.1.102 linux/drivers/scsi/g_NCR5380.c

Next file: linux/drivers/scsi/gdth.c
Previous file: linux/drivers/scsi/fdomain.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.101/linux/drivers/scsi/g_NCR5380.c linux/drivers/scsi/g_NCR5380.c
@@ -614,6 +614,7 @@
 {
     int len = 0;
     NCR5380_local_declare();
+    unsigned long flags;
     unsigned char status;
     int i;
     struct Scsi_Host *scsi_ptr;
@@ -622,7 +623,8 @@
 #ifdef NCR5380_STATS
     Scsi_Device *dev;
     extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE];
-#endif    
+#endif
+    save_flags(flags);
     cli();
 
     for (scsi_ptr = first_instance; scsi_ptr; scsi_ptr=scsi_ptr->next)
@@ -721,7 +723,7 @@
     len -= offset;
     if (len > length)
 	    len = length;
-    sti();
+    restore_flags(flags);
     return len;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov