From 6a37c5714ca9daa072fc83c6cbeb8f4d4d820f4a Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 6 Aug 2014 15:15:16 +0000 Subject: [PATCH] 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; /* -- 2.20.1