Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe Doesn't hurt much to zero this before we s...



details:   https://anonhg.NetBSD.org/src/rev/9cbaa7925e4e
branches:  trunk
changeset: 559618:9cbaa7925e4e
user:      oster <oster%NetBSD.org@localhost>
date:      Sun Mar 21 06:16:49 2004 +0000

description:
Doesn't hurt much to zero this before we start mucking with it.

diffstat:

 sys/dev/raidframe/rf_diskqueue.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r c3411cdf32e7 -r 9cbaa7925e4e sys/dev/raidframe/rf_diskqueue.c
--- a/sys/dev/raidframe/rf_diskqueue.c  Sun Mar 21 05:47:44 2004 +0000
+++ b/sys/dev/raidframe/rf_diskqueue.c  Sun Mar 21 06:16:49 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_diskqueue.c,v 1.33 2004/03/07 22:15:19 oster Exp $  */
+/*     $NetBSD: rf_diskqueue.c,v 1.34 2004/03/21 06:16:49 oster Exp $  */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -66,7 +66,7 @@
  ****************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.33 2004/03/07 22:15:19 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.34 2004/03/21 06:16:49 oster Exp $");
 
 #include <dev/raidframe/raidframevar.h>
 
@@ -451,6 +451,7 @@
        RF_DiskQueueData_t *p;
 
        p = pool_get(&rf_pools.dqd, PR_WAITOK);
+       memset(p, 0, sizeof(RF_DiskQueueData_t));
        p->bp = pool_get(&bufpool, PR_NOWAIT); /* XXX: make up our minds here.
                                                  WAITOK, or NOWAIT?? */
 



Home | Main Index | Thread Index | Old Index