summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-03-16 14:02:37 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-03-16 14:02:37 +0000
commitc082dac4e2d88fc2f9847dab9b3dc8c68be80cf2 (patch)
tree897d8c0850dbd16ce841ce28bc395f08e04389cf /sys
parent5bb88a14eecbaa8615f3cc16eb91ce9482850191 (diff)
zero vga_config after alloc
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/vga.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/vga.c b/sys/dev/ic/vga.c
index f4aa8088384..e42e2159f66 100644
--- a/sys/dev/ic/vga.c
+++ b/sys/dev/ic/vga.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vga.c,v 1.19 2001/03/14 02:49:22 mickey Exp $ */
+/* $OpenBSD: vga.c,v 1.20 2001/03/16 14:02:36 mickey Exp $ */
/* $NetBSD: vga.c,v 1.28.2.1 2000/06/30 16:27:47 simonb Exp $ */
/*
@@ -539,6 +539,7 @@ vga_extended_attach(self, iot, memt, type, map)
vga_console_attached = 1;
} else {
vc = malloc(sizeof(struct vga_config), M_DEVBUF, M_WAITOK);
+ bzero(vc, sizeof(struct vga_config));
vga_init(vc, iot, memt);
}