From 8a836816791cedf4b8b9c0387db0bbbffa977a86 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 7 Jul 1998 06:56:16 +0000 Subject: oops, i did not handle nchrdev correctly --- sys/arch/vax/vax/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/vax') diff --git a/sys/arch/vax/vax/conf.c b/sys/arch/vax/vax/conf.c index 9b206a7e1f6..b2f44ed602a 100644 --- a/sys/arch/vax/vax/conf.c +++ b/sys/arch/vax/vax/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.15 1998/07/07 03:02:50 deraadt Exp $ */ +/* $OpenBSD: conf.c,v 1.16 1998/07/07 06:56:14 deraadt Exp $ */ /* $NetBSD: conf.c,v 1.28 1997/02/04 19:13:17 ragge Exp $ */ /*- @@ -521,7 +521,7 @@ int chrtoblk(dev) dev_t dev; { - if (major(dev) >= MAXDEV || + if (major(dev) >= nchrdev || major(dev) > sizeof(chrtoblktbl)/sizeof(chrtoblktbl[0])) return (NODEV); blkmaj = chrtoblktbl[major(dev)]; -- cgit v1.2.3