summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-02-26 23:11:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-02-26 23:11:58 +0000
commite2c63c296f65c8d711f9e7d00c027d70fb2d6caa (patch)
treef94c0c0cd92edfdd30c5303a6672d08c512ab19e /sys/arch/mvme68k
parentb23d90dda0b0cbcbc55eb94009168c538e625a7a (diff)
when we build a vendor label for writing, clear the memory supplied by the
buffer cache first, so that all sorts of gibble doesn't end up on the disk. ok kettenis (for the sparc/sparc64 ones, at least)
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r--sys/arch/mvme68k/mvme68k/disksubr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/mvme68k/mvme68k/disksubr.c b/sys/arch/mvme68k/mvme68k/disksubr.c
index 12e444a4059..7522567c5ed 100644
--- a/sys/arch/mvme68k/mvme68k/disksubr.c
+++ b/sys/arch/mvme68k/mvme68k/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.65 2009/08/13 15:23:10 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.66 2010/02/26 23:11:57 deraadt Exp $ */
/*
* Copyright (c) 1998 Steve Murphree, Jr.
* Copyright (c) 1995 Dale Rahn.
@@ -135,6 +135,7 @@ bsdtocpulabel(struct disklabel *lp, struct mvmedisklabel *clp)
char *tmot = "MOTOROLA", *id = "M68K", *mot;
int i;
+ bzero(clp, sizeof(*clp));
clp->magic1 = lp->d_magic;
clp->type = lp->d_type;
clp->subtype = lp->d_subtype;