summaryrefslogtreecommitdiffstats
path: root/sys/scsi/scsi_base.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-04-11 19:09:31 +0000
committerache <ache@FreeBSD.org>1995-04-11 19:09:31 +0000
commit7cbdad353165994132fdfd17948768e0d599d5e9 (patch)
treeecee1631fcb84fc1d80e29de0819b6863071b519 /sys/scsi/scsi_base.c
parentbf8d66ec753a59f2df4d1335d9f8501d109b3c56 (diff)
downloadFreeBSD-src-7cbdad353165994132fdfd17948768e0d599d5e9.zip
FreeBSD-src-7cbdad353165994132fdfd17948768e0d599d5e9.tar.gz
Read of a record smaller then request size always fails
Submitted by: edward@edcom.com
Diffstat (limited to 'sys/scsi/scsi_base.c')
-rw-r--r--sys/scsi/scsi_base.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index 4b571e0..d4a5482 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -8,7 +8,7 @@
* file.
*
* Written by Julian Elischer (julian@dialix.oz.au)
- * $Id: scsi_base.c,v 1.24 1995/03/21 11:21:01 dufault Exp $
+ * $Id: scsi_base.c,v 1.25 1995/03/28 07:57:23 bde Exp $
*/
#define SPLSD splbio
@@ -594,12 +594,11 @@ sc_err1(xs)
xs->flags &= ~ITSDONE;
goto retry;
}
+ retval = EIO; /* Too many retries */
}
- retval = EIO; /* Too many retries */
if (bp) {
bp->b_error = 0;
- bp->b_resid = 0;
if (retval) {
bp->b_flags |= B_ERROR;
bp->b_error = retval;
OpenPOWER on IntegriCloud