diff options
| author | 2000-04-09 22:46:03 +0000 | |
|---|---|---|
| committer | 2000-04-09 22:46:03 +0000 | |
| commit | 86624c220d5f6b53617e929fa05923647552627c (patch) | |
| tree | 109891cf951d055f9b05ead878a4c0baca2996e3 /sys/kern/subr_autoconf.c | |
| parent | fix ulpt major # allocation (diff) | |
| download | wireguard-openbsd-86624c220d5f6b53617e929fa05923647552627c.tar.xz wireguard-openbsd-86624c220d5f6b53617e929fa05923647552627c.zip | |
range error; < cd_ndevs, not <=
Diffstat (limited to 'sys/kern/subr_autoconf.c')
| -rw-r--r-- | sys/kern/subr_autoconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c index 1dcdcacf061..b7f89f86c2e 100644 --- a/sys/kern/subr_autoconf.c +++ b/sys/kern/subr_autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_autoconf.c,v 1.26 2000/04/09 19:23:18 csapuntz Exp $ */ +/* $OpenBSD: subr_autoconf.c,v 1.27 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) |
