summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2010-01-13 02:46:20 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2010-01-13 02:46:20 +0000
commitaf8e13ef0ecf806273a4bda41636dd47883790b3 (patch)
tree1a1b40fb09205c0cc9db574a9ee7104c9fa88967
parentb4cd1361312466f832bc9d56594026e48ec3655b (diff)
Oops. Restore decrement of xs->retries I optimized away. Not everything
is dlg@'s fault. ok dlg@
-rw-r--r--sys/scsi/scsi_base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index b98237f027e..6514b4c27a9 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_base.c,v 1.157 2010/01/13 00:49:24 jcs Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.158 2010/01/13 02:46:19 krw Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
@@ -933,7 +933,7 @@ scsi_xs_error(struct scsi_xfer *xs)
break;
}
- if (error == ERESTART && xs->retries < 1)
+ if (error == ERESTART && xs->retries-- < 1)
return (EIO);
else
return (error);