Module Name: src Committed By: martin Date: Sun May 31 17:09:03 UTC 2009
Modified Files: src/sys/arch/sparc/dev: zs.c Log Message: Properly initialize child attach args to zero - we could end up with various devices having different ideas about being console otherwise. To generate a diff of this commit: cvs rdiff -u -r1.115 -r1.116 src/sys/arch/sparc/dev/zs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sparc/dev/zs.c diff -u src/sys/arch/sparc/dev/zs.c:1.115 src/sys/arch/sparc/dev/zs.c:1.116 --- src/sys/arch/sparc/dev/zs.c:1.115 Fri May 22 03:51:30 2009 +++ src/sys/arch/sparc/dev/zs.c Sun May 31 17:09:03 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: zs.c,v 1.115 2009/05/22 03:51:30 mrg Exp $ */ +/* $NetBSD: zs.c,v 1.116 2009/05/31 17:09:03 martin Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.115 2009/05/22 03:51:30 mrg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.116 2009/05/31 17:09:03 martin Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -401,6 +401,7 @@ int ch0_is_cons = 0; #endif + memset(&zsc_args, 0, sizeof zsc_args); if (zsd == NULL) { aprint_error(": configuration incomplete\n"); return; @@ -424,6 +425,7 @@ int hwflags; zsc_args.channel = channel; + zsc_args.hwflags = 0; cs = &zsc->zsc_cs_store[channel]; zsc->zsc_cs[channel] = cs;