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/hp300/hp300/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/hp300') diff --git a/sys/arch/hp300/hp300/conf.c b/sys/arch/hp300/hp300/conf.c index cebfe9c4d9b..b444fba002c 100644 --- a/sys/arch/hp300/hp300/conf.c +++ b/sys/arch/hp300/hp300/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.19 1998/07/07 03:02:36 deraadt Exp $ */ +/* $OpenBSD: conf.c,v 1.20 1998/07/07 06:56:02 deraadt Exp $ */ /* $NetBSD: conf.c,v 1.39 1997/05/12 08:17:53 thorpej Exp $ */ /*- @@ -277,7 +277,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)]; -- cgit v1.2.3