From 1217bf6a9bd7819aa5b12d72499fb28ddd284b52 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Tue, 30 Aug 2005 23:12:18 +0000 Subject: [PATCH] FDOPT_NORETRY is an option, and must be compared with fd->options, not fd->flags. PR: kern/85481 Submitted by: Lev Levinson MFC after: 1 day --- sys/dev/fdc/fdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index b4dc1dea837d..dd39abba7ef8 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -745,7 +745,7 @@ fdc_worker(struct fdc_data *fdc) bp = fdc->bp; fd = fdc->fd; if (bp != NULL && - (fdc->retry >= retries || (fd->flags & FDOPT_NORETRY))) { + (fdc->retry >= retries || (fd->options & FDOPT_NORETRY))) { if ((debugflags & 4)) printf("Too many retries (EIO)\n"); return (fdc_biodone(fdc, EIO));