diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-08-06 15:15:17 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-08-06 15:15:17 +0000 |
commit | be3eec44f2394ebbf5b927c1a4d43236bc599b2d (patch) | |
tree | 24d72649d85efd78f61b7ca6c4277de30d4917d5 | |
parent | b6f7f6be6ba1f8570e030a7bb30720dc1fd8e01e (diff) |
fix an off by one
ok deraadt@
-rw-r--r-- | sys/arch/alpha/mcbus/mcbus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/alpha/mcbus/mcbus.c b/sys/arch/alpha/mcbus/mcbus.c index 3fbf2d70870..580e6cf85df 100644 --- a/sys/arch/alpha/mcbus/mcbus.c +++ b/sys/arch/alpha/mcbus/mcbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mcbus.c,v 1.2 2012/12/05 23:20:10 deraadt Exp $ */ +/* $OpenBSD: mcbus.c,v 1.3 2014/08/06 15:15:16 jsg Exp $ */ /* $NetBSD: mcbus.c,v 1.19 2007/03/04 05:59:11 christos Exp $ */ /* @@ -155,7 +155,7 @@ mcbusattach(parent, self, aux) bcs[mcbus_primary.mcbus_bcache] : "Unknown"); mbp->mcbus_types[0] = MCBUS_TYPE_RES; - for (mid = 1; mid <= MCBUS_MID_MAX; ++mid) + for (mid = 1; mid < MCBUS_MID_MAX; ++mid) mbp->mcbus_types[mid] = MCBUS_TYPE_UNK; /* |