summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2000-01-04 12:51:50 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2000-01-04 12:51:50 +0000
commitfb01c24c11890d5ca582bf6aed05a82f0c86c4ff (patch)
treeeb0f3696b12d8da36f040ff869c0a22c2a6e1497 /sys
parent6a77f60d4acc3312fd6704934b6afb129ea74c93 (diff)
downloadsrc-test2-fb01c24c11890d5ca582bf6aed05a82f0c86c4ff.tar.gz
src-test2-fb01c24c11890d5ca582bf6aed05a82f0c86c4ff.zip
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_conf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index ad62d2a8ced2..d6116f75513f 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -189,6 +189,9 @@ lminor(dev_t x)
dev_t
makebdev(int x, int y)
{
+
+ if (x == umajor(NOUDEV) && y == uminor(NOUDEV))
+ Debugger("makebdev of NOUDEV");
return (makedev(bmaj2cmaj[x], y));
}
@@ -200,6 +203,8 @@ makedev(int x, int y)
int hash;
static int stashed;
+ if (x == umajor(NOUDEV) && y == uminor(NOUDEV))
+ Debugger("makedev of NOUDEV");
udev = (x << 8) | y;
hash = udev % DEVT_HASH;
LIST_FOREACH(si, &dev_hash[hash], si_hash) {
@@ -254,6 +259,9 @@ dev2udev(dev_t x)
dev_t
udev2dev(udev_t x, int b)
{
+
+ if (x == NOUDEV)
+ return (NODEV);
switch (b) {
case 0:
return makedev(umajor(x), uminor(x));