diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-07 06:56:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-07 06:56:16 +0000 |
commit | 8a836816791cedf4b8b9c0387db0bbbffa977a86 (patch) | |
tree | 837cfa550b94a1b7830156e4a8434e148624271a /sys/arch/arm32 | |
parent | e4ca8552c1797108085b6d7f15e770c7686da261 (diff) |
oops, i did not handle nchrdev correctly
Diffstat (limited to 'sys/arch/arm32')
-rw-r--r-- | sys/arch/arm32/arm32/conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/arm32/arm32/conf.c b/sys/arch/arm32/arm32/conf.c index d6403058df2..4c7959ad525 100644 --- a/sys/arch/arm32/arm32/conf.c +++ b/sys/arch/arm32/arm32/conf.c @@ -366,7 +366,7 @@ chrtoblk(dev) { int blkmaj; - if (major(dev) >= MAXDEV || + if (major(dev) >= nchrdev || major(dev) > sizeof(chrtoblktbl)/sizeof(chrtoblktbl[0])) return (NODEV); blkmaj = chrtoblktbl[major(dev)]; |