Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa Fix PR 13465 by Krister Walfridsson: memory init...



details:   https://anonhg.NetBSD.org/src/rev/f693c17fef12
branches:  trunk
changeset: 518840:f693c17fef12
user:      rafal <rafal%NetBSD.org@localhost>
date:      Thu Dec 06 13:18:22 2001 +0000

description:
Fix PR 13465 by Krister Walfridsson: memory initialization used uninitialized
variable to start off the write pattern (how ironic! 8-).

diffstat:

 sys/dev/isa/if_ix.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b01bca5ba91c -r f693c17fef12 sys/dev/isa/if_ix.c
--- a/sys/dev/isa/if_ix.c       Thu Dec 06 12:40:51 2001 +0000
+++ b/sys/dev/isa/if_ix.c       Thu Dec 06 13:18:22 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ix.c,v 1.11 2001/11/26 23:31:00 fredette Exp $      */
+/*     $NetBSD: if_ix.c,v 1.12 2001/12/06 13:18:22 rafal Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ix.c,v 1.11 2001/11/26 23:31:00 fredette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ix.c,v 1.12 2001/12/06 13:18:22 rafal Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -814,7 +814,7 @@
                                                    BUS_SPACE_BARRIER_WRITE);
 
                        /* write test pattern */
-                       for(i = 0; i < memsize; i += 2) {
+                       for(i = 0, wpat = 1; i < memsize; i += 2) {
                                bus_space_write_2(iot, ioh, IX_DATAPORT, wpat);
                                wpat += 3;
                        }



Home | Main Index | Thread Index | Old Index