summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-03-13 21:56:18 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-03-13 21:56:18 +0000
commitb1a2f1df23e13152021c3ebccb0e523e37f9eed0 (patch)
treefe40b6beaa5c801aa05229e2be72063936c8ea5c /sys/arch/sgi
parent86766c69cedcba05f49b1e1e6b7f4b8c9de3fb20 (diff)
Make sure non-console impact_screen struct gets zeroed upon allocation,
otherwise backing store may not get allocated for it; "go ahead" kettenis@
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r--sys/arch/sgi/xbow/impact.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sgi/xbow/impact.c b/sys/arch/sgi/xbow/impact.c
index 94083e0778f..8e86e1a3a37 100644
--- a/sys/arch/sgi/xbow/impact.c
+++ b/sys/arch/sgi/xbow/impact.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: impact.c,v 1.2 2010/03/08 04:32:28 deraadt Exp $ */
+/* $OpenBSD: impact.c,v 1.3 2010/03/13 21:56:17 miod Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
@@ -191,7 +191,7 @@ impact_attach(struct device *parent, struct device *self, void *aux)
* Setup screen data.
*/
scr = malloc(sizeof(struct impact_screen), M_DEVBUF,
- M_NOWAIT);
+ M_NOWAIT | M_ZERO);
if (scr == NULL) {
printf("failed to allocate screen memory!\n");
return;