Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Make sure the config structure allocated d...
details: https://anonhg.NetBSD.org/src/rev/6b02932118d2
branches: trunk
changeset: 485403:6b02932118d2
user: oster <oster%NetBSD.org@localhost>
date: Thu Apr 27 00:57:48 2000 +0000
description:
Make sure the config structure allocated during autoconfiguration actually
gets initialized properly. Should fix PR#9816.
diffstat:
sys/dev/raidframe/rf_netbsdkintf.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r 16479ee7dfa8 -r 6b02932118d2 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c Thu Apr 27 00:33:49 2000 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c Thu Apr 27 00:57:48 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.76 2000/03/31 02:05:24 oster Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.77 2000/04/27 00:57:48 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -2991,6 +2991,7 @@
RF_Raid_t *raidPtr;
{
RF_ComponentLabel_t *clabel;
+ int i;
clabel = ac->clabel;
@@ -3015,6 +3016,9 @@
ac = ac->next;
}
+ for(i=0;i<RF_MAXDBGV;i++) {
+ config->debugVars[i][0] = NULL;
+ }
}
int
@@ -3158,6 +3162,9 @@
/* XXX do something more intelligent here. */
return(1);
}
+
+ memset(config, 0, sizeof(RF_Config_t));
+
/* XXX raidID needs to be set correctly.. */
/*
Home |
Main Index |
Thread Index |
Old Index