From 267ff918b07327556ea246b25122f7b186266e34 Mon Sep 17 00:00:00 2001 From: pelikan Date: Wed, 20 May 2015 15:21:57 +0000 Subject: [PATCH] Signed types are bad array indicies - let it panic instead. ok deraadt krw millert --- sys/dev/softraid.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 906c098fc22..623734ba249 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.352 2015/05/11 12:24:06 pelikan Exp $ */ +/* $OpenBSD: softraid.c,v 1.353 2015/05/20 15:21:57 pelikan Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom * Copyright (c) 2008 Chris Kuethe @@ -4338,8 +4338,9 @@ void sr_set_vol_state(struct sr_discipline *sd) { int states[SR_MAX_STATES]; - int new_state, i, s, nd; + int new_state, i, nd; int old_state = sd->sd_vol_status; + u_int32_t s; DNPRINTF(SR_D_STATE, "%s: %s: sr_set_vol_state\n", DEVNAME(sd->sd_sc), sd->sd_meta->ssd_devname); -- 2.20.1