summaryrefslogtreecommitdiffstats
path: root/sys/cam/cam_periph.c
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2000-01-25 17:45:02 +0000
committerken <ken@FreeBSD.org>2000-01-25 17:45:02 +0000
commit810f78cd6f851d59047cded1ce9964c8d87e7392 (patch)
tree8dbec10a6226b08c2ef61c24a536ebcbab0818fc /sys/cam/cam_periph.c
parent88ca73a4274ef395ef72bc39ea749150e58e81b2 (diff)
downloadFreeBSD-src-810f78cd6f851d59047cded1ce9964c8d87e7392.zip
FreeBSD-src-810f78cd6f851d59047cded1ce9964c8d87e7392.tar.gz
When autosense fails, make sure we retry the command.
PR: kern/15975 Submitted by: Carl Mascott <cmascott@world.std.com>, n_hibma
Diffstat (limited to 'sys/cam/cam_periph.c')
-rw-r--r--sys/cam/cam_periph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
index 5bbd81c..2b6445f 100644
--- a/sys/cam/cam_periph.c
+++ b/sys/cam/cam_periph.c
@@ -1439,7 +1439,7 @@ cam_periph_error(union ccb *ccb, cam_flags camflags,
"CAM_AUTOSENSE_FAILED");
/* NOTREACHED */
error = EIO;
- } else if (ccb->ccb_h.retry_count > 0) {
+ } else if (ccb->ccb_h.retry_count == 0) {
/*
* XXX KDM shouldn't there be a better
* argument to return??
OpenPOWER on IntegriCloud