Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Fill in param[3] for succedents for bad di...
details: https://anonhg.NetBSD.org/src/rev/01a621635ed3
branches: trunk
changeset: 753997:01a621635ed3
user: oster <oster%NetBSD.org@localhost>
date: Thu Apr 15 15:49:00 2010 +0000
description:
Fill in param[3] for succedents for bad disk 'i' rather than '0'. Fortunately, nbad is never > 1, so this bug never showed up anywhere. Bug spotted by Jed Davis. Thanks!
diffstat:
sys/dev/raidframe/rf_raid1.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 50abb212d43a -r 01a621635ed3 sys/dev/raidframe/rf_raid1.c
--- a/sys/dev/raidframe/rf_raid1.c Thu Apr 15 14:34:25 2010 +0000
+++ b/sys/dev/raidframe/rf_raid1.c Thu Apr 15 15:49:00 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_raid1.c,v 1.31 2008/04/20 20:42:32 oster Exp $ */
+/* $NetBSD: rf_raid1.c,v 1.32 2010/04/15 15:49:00 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -33,7 +33,7 @@
*****************************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_raid1.c,v 1.31 2008/04/20 20:42:32 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_raid1.c,v 1.32 2010/04/15 15:49:00 oster Exp $");
#include "rf_raid.h"
#include "rf_raid1.h"
@@ -485,7 +485,7 @@
wrBlock->succedents[i]->params[0].p = pda;
wrBlock->succedents[i]->params[1].p = pda->bufPtr;
wrBlock->succedents[i]->params[2].v = psID;
- wrBlock->succedents[0]->params[3].v = RF_CREATE_PARAM3(RF_IO_NORMAL_PRIORITY, which_ru);
+ wrBlock->succedents[i]->params[3].v = RF_CREATE_PARAM3(RF_IO_NORMAL_PRIORITY, which_ru);
}
#if RF_ACC_TRACE > 0
memset((char *) &tracerec, 0, sizeof(tracerec));
Home |
Main Index |
Thread Index |
Old Index