diff options
author | grog <grog@FreeBSD.org> | 1999-08-08 00:34:00 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-08-08 00:34:00 +0000 |
commit | 9c4631d1997d1772b6438312fa5f88c749cbbf52 (patch) | |
tree | 8794c3c1af89f24a5b7562d96282740d3619f27c /sys | |
parent | 794dc7dbf91fe8aa89ae5e4d55f91c7fc115348f (diff) | |
download | FreeBSD-src-9c4631d1997d1772b6438312fa5f88c749cbbf52.zip FreeBSD-src-9c4631d1997d1772b6438312fa5f88c749cbbf52.tar.gz |
cdevsw_remove: place correct value in bmaj2cmaj. This had caused
warnings of the following nature on reloading a kld:
WARNING: "vinum" is usurping "console"'s bmaj
This only applies to cases where "console" is mentioned.
Broken-by: grog
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index 7fd2cf8..b944149 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: kern_conf.c,v 1.52 1999/07/20 21:29:13 green Exp $ + * $Id: kern_conf.c,v 1.53 1999/07/20 21:51:12 green Exp $ */ #include <sys/param.h> @@ -145,7 +145,7 @@ cdevsw_remove(struct cdevsw *oldentry) cdevsw[oldentry->d_maj] = NULL; if (oldentry->d_bmaj >= 0 && oldentry->d_bmaj < NUMCDEVSW) - bmaj2cmaj[oldentry->d_bmaj] = NULL; + bmaj2cmaj[oldentry->d_bmaj] = 254; return 0; } |