summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-14 08:56:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-14 08:56:51 +0000
commited47428111080ac63ff673cdc449a230d6782c90 (patch)
tree68773162325199cb26bb041391e87456c05f8c3d /sys/scsi
parent3bb5b7478d3bbd873ba75ab1ff1163209b378817 (diff)
clear scsi_xfer's status byte before executing or re-executing the command.
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/scsi_base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index 454ef793028..a366a548902 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_base.c,v 1.20 1997/12/31 01:22:10 deraadt Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.21 1998/02/14 08:56:50 deraadt Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
@@ -412,6 +412,7 @@ scsi_execute_xs(xs)
xs->flags &= ~ITSDONE;
xs->error = XS_NOERROR;
xs->resid = xs->datalen;
+ xs->status = 0;
retry:
/*