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
- Lines: 27
- Date:
Mon May 11 11:20:12 1998
- Orig file:
v2.1.101/linux/drivers/scsi/g_NCR5380.c
- Orig date:
Tue Apr 14 14:29:22 1998
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