diff options
| author | oster <oster@NetBSD.org> | 1999-12-14 15:27:00 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 1999-12-14 15:27:00 +0000 |
| commit | fe0726b92140e4fccde4b011bd6132004f090112 (patch) | |
| tree | 3dbf8fe9c874bc3b796084ad0f4a8b678c9da5b0 /sys/dev/raidframe | |
| parent | cf7de63ef3377bfa061c9c3463b618ece7405dc8 (diff) | |
Whoops! Neglected to initialize the buffer queues for anything other
than raid0. Fix that...
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_netbsdkintf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c index 3e00eb5312b..a43013a5ac3 100644 --- a/sys/dev/raidframe/rf_netbsdkintf.c +++ b/sys/dev/raidframe/rf_netbsdkintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_netbsdkintf.c,v 1.34 1999/12/12 20:51:41 oster Exp $ */ +/* $NetBSD: rf_netbsdkintf.c,v 1.35 1999/12/14 15:27:00 oster Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -356,10 +356,11 @@ raidattach(num) } numraid = num; bzero(raid_softc, num * sizeof(struct raid_softc)); - raid_softc->buf_queue.b_actf = NULL; - raid_softc->buf_queue.b_actb = &raid_softc->buf_queue.b_actf; for (raidID = 0; raidID < num; raidID++) { + raid_softc[raidID].buf_queue.b_actf = NULL; + raid_softc[raidID].buf_queue.b_actb = + &raid_softc[raidID].buf_queue.b_actf; RF_Calloc(raidPtrs[raidID], 1, sizeof(RF_Raid_t), (RF_Raid_t *)); if (raidPtrs[raidID] == NULL) { |
