diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2007-04-11 22:52:34 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2007-04-11 22:52:34 +0000 |
commit | 9b4154863361e2b06559dab646460744031acd38 (patch) | |
tree | d992ac1fcac3c9d08f6ff20753cb7ed5ff491038 /sys/dev/softraid.c | |
parent | 23d4a1f4c280cfb7e759de306c28ae5838a0bf71 (diff) |
Fix thinko where vol was used instead of i (scsibus).
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index fc7bbcfe25b..75c95a72b8a 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.15 2007/04/11 22:05:09 marco Exp $ */ +/* $OpenBSD: softraid.c,v 1.16 2007/04/11 22:52:33 marco Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * @@ -624,10 +624,10 @@ sr_ioctl_disk(struct sr_softc *sc, struct bioc_disk *bd) continue; id = bd->bd_diskid; - if (id >= sc->sc_dis[vol]->sd_vol.sv_meta.svm_no_chunk) + if (id >= sc->sc_dis[i]->sd_vol.sv_meta.svm_no_chunk) break; - src = sc->sc_dis[vol]->sd_vol.sv_chunks[id]; + src = sc->sc_dis[i]->sd_vol.sv_chunks[id]; bd->bd_status = src->src_meta.scm_status; bd->bd_size = src->src_meta.scm_size; bd->bd_channel = vol; |