patch-2.1.125 linux/drivers/scsi/scsi.c
Next file: linux/drivers/scsi/scsi_obsolete.c
Previous file: linux/drivers/scsi/ncr53c8xx.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Thu Oct 8 08:07:34 1998
- Orig file:
v2.1.124/linux/drivers/scsi/scsi.c
- Orig date:
Thu Sep 17 17:53:36 1998
diff -u --recursive --new-file v2.1.124/linux/drivers/scsi/scsi.c linux/drivers/scsi/scsi.c
@@ -1476,6 +1476,7 @@
SCpnt->internal_timeout = NORMAL_TIMEOUT;
SCpnt->abort_reason = 0;
+ SCpnt->result = 0;
internal_cmnd (SCpnt);
SCSI_LOG_MLQUEUE(3,printk ("Leaving scsi_do_cmd()\n"));
@@ -1704,6 +1705,8 @@
SCpnt->request_bufflen = SCpnt->bufflen;
SCpnt->use_sg = SCpnt->old_use_sg;
SCpnt->cmd_len = SCpnt->old_cmd_len;
+ SCpnt->result = 0;
+ memset ((void *) SCpnt->sense_buffer, 0, sizeof SCpnt->sense_buffer);
return internal_cmnd (SCpnt);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov