summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-02-14 08:56:50 +0000
committerderaadt <deraadt@openbsd.org>1998-02-14 08:56:50 +0000
commite478530be1b31fb17cedbabd5aa565d351ee35cd (patch)
tree215e5b434385a1baf8e6c0b3655c05761101c8bf
parentrecog STRIPDISC; kleink (diff)
downloadwireguard-openbsd-e478530be1b31fb17cedbabd5aa565d351ee35cd.tar.xz
wireguard-openbsd-e478530be1b31fb17cedbabd5aa565d351ee35cd.zip
clear scsi_xfer's status byte before executing or re-executing the command.
-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:
/*