aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdc
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2005-08-30 23:12:18 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2005-08-30 23:12:18 +0000
commit1217bf6a9bd7819aa5b12d72499fb28ddd284b52 (patch)
tree5b3cf4fdced827e1a2a748bb240e32547ebb1a3a /sys/dev/fdc
parent78f14f2cee51494bfbc34cac9bd47801937b8c1a (diff)
downloadsrc-1217bf6a9bd7819aa5b12d72499fb28ddd284b52.tar.gz
src-1217bf6a9bd7819aa5b12d72499fb28ddd284b52.zip
FDOPT_NORETRY is an option, and must be compared with fd->options,
not fd->flags. PR: kern/85481 Submitted by: Lev Levinson <llevinson at inbox dot ru> MFC after: 1 day
Notes
Notes: svn path=/head/; revision=149650
Diffstat (limited to 'sys/dev/fdc')
-rw-r--r--sys/dev/fdc/fdc.c2
1 files changed, 1 insertions, 1 deletions
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));