diff options
author | Martin Pelikan <pelikan@cvs.openbsd.org> | 2015-05-20 15:21:58 +0000 |
---|---|---|
committer | Martin Pelikan <pelikan@cvs.openbsd.org> | 2015-05-20 15:21:58 +0000 |
commit | 7beeb44defa5c09f2368a8942591c8da4a0a0881 (patch) | |
tree | 4ed71dd5f76758f78d08ec79ab1da71f7144cc04 /sys/dev/softraid.c | |
parent | c817c496b0011a827826bcaf129c4d84ed40f2a1 (diff) |
Signed types are bad array indicies - let it panic instead.
ok deraadt krw millert
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 5 |
1 files 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 <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -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); |