From 56e3e24bfd56ab4a4f98d29c62e2db28c9369d7d Mon Sep 17 00:00:00 2001 From: "Kenneth D. Merry" Date: Tue, 25 Jan 2000 17:45:02 +0000 Subject: When autosense fails, make sure we retry the command. PR: kern/15975 Submitted by: Carl Mascott , n_hibma --- sys/cam/cam_periph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index 5bbd81c1428e..2b6445f61a7d 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?? -- cgit v1.3