kern/116536: [fdc] [patch] fdc(4) does not respect hint.fd.0.flags
from device.hints
Eugene Grosbein
eugen at grosbein.pp.ru
Fri Sep 21 22:20:01 PDT 2007
>Number: 116536
>Category: kern
>Synopsis: [fdc] [patch] fdc(4) does not respect hint.fd.0.flags from device.hints
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Sep 22 05:20:00 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Eugene Grosbein
>Release: FreeBSD 6.2-STABLE i386
>Organization:
Svyaz-Service JSC
>Environment:
System: FreeBSD grosbein.pp.ru 6.2-STABLE FreeBSD 6.2-STABLE #2: Sun Sep 16 16:54:23 KRAST 2007 eu at grosbein.pp.ru:/home/obj/usr/local/src/sys/DADV i386
>Description:
Changing hint.fd.0.flags has no effect on fdc(4)
>How-To-Repeat:
Try to change hint.fd.0.flags and see no change in behavour
>Fix:
--- sys/dev/fdc/fdc.c.orig 2007-09-15 16:53:23.000000000 +0800
+++ sys/dev/fdc/fdc.c 2007-09-16 16:26:07.000000000 +0800
@@ -1848,6 +1864,7 @@
fd->dev = dev;
fd->fdc = fdc;
fd->fdsu = fdsu;
+ fd->flags = flags;
unit = device_get_unit(dev);
/* Auto-probe if fdinfo is present, but always allow override. */
@@ -1857,7 +1874,7 @@
goto done;
} else {
/* make sure fdautoselect() will be called */
- fd->flags = FD_EMPTY;
+ fd->flags |= FD_EMPTY;
fd->type = type;
}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list