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.
This commit is contained in:
oster 2003-12-30 17:46:59 +00:00
parent ed1155b792
commit 34ad01b703
1 changed files with 3 additions and 4 deletions

View File

@ -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++;
}
}