From be3eec44f2394ebbf5b927c1a4d43236bc599b2d Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Wed, 6 Aug 2014 15:15:17 +0000 Subject: fix an off by one ok deraadt@ --- sys/arch/alpha/mcbus/mcbus.c | 4 ++-- 1 file 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; /* -- cgit v1.2.3