Update of /cvsroot/linux-vax/kernel-2.5/drivers/scsi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8666/drivers/scsi
Modified Files:
NCR5380.c
Log Message:
Workaround a bug when AUTOSENSE is enabled
Index: NCR5380.c
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/drivers/scsi/NCR5380.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- NCR5380.c 8 Aug 2004 23:32:34 -0000 1.2
+++ NCR5380.c 13 Aug 2004 23:44:24 -0000 1.3
@@ -28,6 +28,9 @@
/*
* $Log$
+ * Revision 1.3 2004/08/13 23:44:24 kenn
+ * Workaround a bug when AUTOSENSE is enabled
+ *
* Revision 1.2 2004/08/08 23:32:34 kenn
* Temporary fix for some locking problems in the 5380 core driver. I've
* asked on linux-scsi about this, so hopefully I'll get a definitive
@@ -1734,8 +1737,9 @@
hostdata->connected = cmd;
hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun);
- initialize_SCp(cmd);
-
+ if (cmd->SCp.ptr != (char *)cmd->sense_buffer) {
+ initialize_SCp(cmd);
+ }
return 0;
|