summaryrefslogtreecommitdiff
path: root/sys/arch/vax/vsa/lcspx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/vax/vsa/lcspx.c')
-rw-r--r--sys/arch/vax/vsa/lcspx.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/vax/vsa/lcspx.c b/sys/arch/vax/vsa/lcspx.c
index df4d91c8a03..818557f6837 100644
--- a/sys/arch/vax/vsa/lcspx.c
+++ b/sys/arch/vax/vsa/lcspx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lcspx.c,v 1.11 2006/11/29 12:13:54 miod Exp $ */
+/* $OpenBSD: lcspx.c,v 1.12 2007/10/01 16:11:19 krw Exp $ */
/*
* Copyright (c) 2006 Miodrag Vallat.
*
@@ -232,12 +232,11 @@ lcspx_attach(struct device *parent, struct device *self, void *aux)
ss = &lcspx_consscr;
sc->sc_nscreens = 1;
} else {
- ss = malloc(sizeof(struct lcspx_screen), M_DEVBUF, M_NOWAIT);
+ ss = malloc(sizeof(*ss), M_DEVBUF, M_NOWAIT | M_ZERO);
if (ss == NULL) {
printf(": can not allocate memory\n");
return;
}
- bzero(ss, sizeof(struct lcspx_screen));
ss->ss_addr = (caddr_t)vax_map_physmem(LCSPX_FB_ADDR,
LCSPX_FBSIZE / VAX_NBPG);