Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/dev/pci pull up rev 1.83 from trunk (cgd):



details:   https://anonhg.NetBSD.org/src/rev/f9d814554b6c
branches:  netbsd-1-4
changeset: 469409:f9d814554b6c
user:      cgd <cgd%NetBSD.org@localhost>
date:      Sat Sep 18 01:12:25 1999 +0000

description:
pull up rev 1.83 from trunk (cgd):
        Zero out DMA memory regions to avoid use of uninitialized
        memory (and resutling "COMMAND FAILED" errors) on systems
        which don't clear memory on boot.  (cgd)

diffstat:

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

diffs (34 lines):

diff -r 454f43ba26db -r f9d814554b6c sys/dev/pci/ncr.c
--- a/sys/dev/pci/ncr.c Sat Sep 18 01:07:15 1999 +0000
+++ b/sys/dev/pci/ncr.c Sat Sep 18 01:12:25 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ncr.c,v 1.80.2.2 1999/09/18 01:07:15 cgd Exp $ */
+/*     $NetBSD: ncr.c,v 1.80.2.3 1999/09/18 01:12:25 cgd Exp $ */
 
 /**************************************************************************
 **
@@ -1518,7 +1518,7 @@
 
 #if 0
 static char ident[] =
-       "\n$NetBSD: ncr.c,v 1.80.2.2 1999/09/18 01:07:15 cgd Exp $\n";
+       "\n$NetBSD: ncr.c,v 1.80.2.3 1999/09/18 01:12:25 cgd Exp $\n";
 #endif
 
 static const u_long    ncr_version = NCR_VERSION       * 11
@@ -4136,6 +4136,7 @@
                            "error = %d\n", self->dv_xname, error);
                        return;
                }
+               memset(np->script, 0, sizeof(struct script));
 #else
                np->script  = (struct script *)
                        malloc (sizeof (struct script), M_DEVBUF, M_WAITOK);
@@ -4184,6 +4185,7 @@
                    "error = %d\n", self->dv_xname, error);
                return;
        }
+       memset(np->scripth, 0, sizeof(struct scripth));
 #endif /* __FreeBSD__ */
 
 #ifdef SCSI_NCR_PCI_CONFIG_FIXUP



Home | Main Index | Thread Index | Old Index