From 3829ee490ae7f0a2ef435035774e38ced58ed809 Mon Sep 17 00:00:00 2001 From: rodrigc Date: Tue, 30 Aug 2005 23:12:18 +0000 Subject: 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(-) (limited to 'sys/dev/fdc/fdc.c') diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index b4dc1de..dd39abb 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)); -- cgit v1.1