Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe Umm.. let's set 'numraid' to something use...



details:   https://anonhg.NetBSD.org/src/rev/4b0e823367e1
branches:  trunk
changeset: 482778:4b0e823367e1
user:      oster <oster%NetBSD.org@localhost>
date:      Mon Feb 21 23:33:45 2000 +0000

description:
Umm.. let's set 'numraid' to something useful before we try to use it.

diffstat:

 sys/dev/raidframe/rf_netbsdkintf.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 44ecea091f6b -r 4b0e823367e1 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Mon Feb 21 20:38:46 2000 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Mon Feb 21 23:33:45 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_netbsdkintf.c,v 1.49 2000/02/16 01:10:44 oster Exp $        */
+/*     $NetBSD: rf_netbsdkintf.c,v 1.50 2000/02/21 23:33:45 oster Exp $        */
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -318,6 +318,8 @@
        }
        /* This is where all the initialization stuff gets done. */
 
+       numraid = num;
+
        /* Make some space for requested number of units... */
 
        RF_Calloc(raidPtrs, num, sizeof(RF_Raid_t *), (RF_Raid_t **));
@@ -350,7 +352,7 @@
                printf("WARNING: no memory for RAIDframe driver\n");
                return;
        }
-       numraid = num;
+
        bzero(raid_softc, num * sizeof(struct raid_softc));
 
        raidrootdev = (struct device *)malloc(num * sizeof(struct device),



Home | Main Index | Thread Index | Old Index