Date: Tue, 1 Aug 2000 21:11:29 +0200 (CEST) From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: FreeBSD-gnats-submit@freebsd.org Subject: kern/20348: patch for "fd" is usurping "fd" ... Message-ID: <200008011911.e71JBTv00816@curry.mchp.siemens.de>
next in thread | raw e-mail | index | archive | help
>Number: 20348 >Category: kern >Synopsis: patch for "fd" is usurping "fd" ... >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 01 12:20:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Andre Albsmeier >Release: FreeBSD 4.1-STABLE i386 >Organization: >Environment: FreeBSD 4.1-STABLE >Description: When using two floppy drives, dmesg tells us >How-To-Repeat: Attach two floppies to a 4.1-STABLE machine and boot. >Fix: Thanks to the hint from Poul-Henning Kamp <phk@critter.freebsd.dk>, the problem could be solved easily: --- sys/isa/fd.c.ORI Mon Jul 31 09:38:59 2000 +++ sys/isa/fd.c Mon Jul 31 09:41:11 2000 @@ -1048,10 +1048,14 @@ int typemynor; int typesize; #endif + static char cdevsw_add_done = 0; fd = device_get_softc(dev); - cdevsw_add(&fd_cdevsw); /* XXX */ + if (!cdevsw_add_done) { + cdevsw_add(&fd_cdevsw); /* XXX */ + cdevsw_add_done++; + } make_dev(&fd_cdevsw, (fd->fdu << 6), UID_ROOT, GID_OPERATOR, 0640, "rfd%d", fd->fdu); >Release-Note: >Audit-Trail: >Unformatted: >WARNING: "fd" is usurping "fd"'s cdevsw[] >WARNING: "fd" is usurping "fd"'s bmaj To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008011911.e71JBTv00816>