summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2003-12-30 17:46:59 +0000
committeroster <oster@NetBSD.org>2003-12-30 17:46:59 +0000
commit34ad01b703a01f0279908e17c2ea50f8eb017b73 (patch)
treec3b35b5f8c4a83ea5403c802f5a5a8e40258edb3 /sys/dev/raidframe
parented1155b7921a758e7251b088bb3d29e9324ae8e6 (diff)
Fix slight bogon from row removal. 'r' would have been 0 here, not 1,
which means r*raidPtr->numCol would have always been 0, not raidPtr->numCol.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_disks.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/raidframe/rf_disks.c b/sys/dev/raidframe/rf_disks.c
index b7fe11041b8..8cbd3fcca57 100644
--- a/sys/dev/raidframe/rf_disks.c
+++ b/sys/dev/raidframe/rf_disks.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_disks.c,v 1.47 2003/12/29 03:33:48 oster Exp $ */
+/* $NetBSD: rf_disks.c,v 1.48 2003/12/30 17:46:59 oster Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -67,7 +67,7 @@
***************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_disks.c,v 1.47 2003/12/29 03:33:48 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_disks.c,v 1.48 2003/12/30 17:46:59 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -525,8 +525,7 @@ rf_AutoConfigureDisks(raidPtr, cfgPtr, auto_config)
/* Didn't find it at all!! Component must
really be dead */
disks[c].status = rf_ds_failed;
- sprintf(disks[c].devname,"component%d",
- raidPtr->numCol + c);
+ sprintf(disks[c].devname, "component%d", c);
numFailuresThisRow++;
}
}