artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2085de
)
range error; < cd_ndevs, not <=
author
deraadt
<deraadt@openbsd.org>
Sun, 9 Apr 2000 22:46:03 +0000
(22:46 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sun, 9 Apr 2000 22:46:03 +0000
(22:46 +0000)
sys/kern/subr_autoconf.c
patch
|
blob
|
history
diff --git
a/sys/kern/subr_autoconf.c
b/sys/kern/subr_autoconf.c
index
1dcdcac
..
b7f89f8
100644
(file)
--- a/
sys/kern/subr_autoconf.c
+++ b/
sys/kern/subr_autoconf.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: subr_autoconf.c,v 1.2
6 2000/04/09 19:23:18 csapuntz Exp $
*/
+/* $OpenBSD: subr_autoconf.c,v 1.2
7 2000/04/09 22:46:03 deraadt Exp $
*/
/* $NetBSD: subr_autoconf.c,v 1.21 1996/04/04 06:06:18 cgd Exp $ */
/*
@@
-809,7
+809,7
@@
device_lookup(cd, unit)
{
struct device *dv = NULL;
- if (unit >= 0 && unit <
=
cd->cd_ndevs)
+ if (unit >= 0 && unit < cd->cd_ndevs)
dv = (struct device *)(cd->cd_devs[unit]);
if (!dv)