summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdc/fdc.c
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2005-08-30 23:12:18 +0000
committerrodrigc <rodrigc@FreeBSD.org>2005-08-30 23:12:18 +0000
commit3829ee490ae7f0a2ef435035774e38ced58ed809 (patch)
tree5b3cf4fdced827e1a2a748bb240e32547ebb1a3a /sys/dev/fdc/fdc.c
parent18756abe45f557e67d322eb777f1d8ac375808ea (diff)
downloadFreeBSD-src-3829ee490ae7f0a2ef435035774e38ced58ed809.zip
FreeBSD-src-3829ee490ae7f0a2ef435035774e38ced58ed809.tar.gz
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
Diffstat (limited to 'sys/dev/fdc/fdc.c')
-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 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));
OpenPOWER on IntegriCloud