summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2010-03-08 20:54:42 +0000
committermiod <miod@openbsd.org>2010-03-08 20:54:42 +0000
commit7770afb139d45807b66a1e0965f7567eaa2e420e (patch)
treebd59a4a79a384d4648005c4e7f18033b28ecb1c6
parentaye, broadcast addr too. spotted by kettenis (diff)
downloadwireguard-openbsd-7770afb139d45807b66a1e0965f7567eaa2e420e.tar.xz
wireguard-openbsd-7770afb139d45807b66a1e0965f7567eaa2e420e.zip
Correctly initialize all members of struct wsemuldisplaydev_attach_args
before attaching wsdisplay; it was turning out harmless but using more cpu time for nothing than necessary. ok deraadt@
-rw-r--r--sys/arch/sgi/dev/gbe.c4
-rw-r--r--sys/arch/sgi/xbow/odyssey.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/sgi/dev/gbe.c b/sys/arch/sgi/dev/gbe.c
index bb1d77865cb..766aa3dc1cd 100644
--- a/sys/arch/sgi/dev/gbe.c
+++ b/sys/arch/sgi/dev/gbe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gbe.c,v 1.11 2010/03/07 13:44:24 miod Exp $ */
+/* $OpenBSD: gbe.c,v 1.12 2010/03/08 20:54:42 miod Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Joel Sing <jsing@openbsd.org>
@@ -244,6 +244,7 @@ gbe_attach(struct device *parent, struct device *self, void *aux)
waa.scrdata = &gbe_screenlist;
waa.accessops = &gbe_accessops;
waa.accesscookie = &gbe_consdata;
+ waa.defaultscreens = 0;
config_found(self, &waa, wsemuldisplaydevprint);
return;
@@ -413,6 +414,7 @@ gbe_attach(struct device *parent, struct device *self, void *aux)
waa.scrdata = &gbe_screenlist;
waa.accessops = &gbe_accessops;
waa.accesscookie = screen;
+ waa.defaultscreens = 0;
config_found(self, &waa, wsemuldisplaydevprint);
return;
diff --git a/sys/arch/sgi/xbow/odyssey.c b/sys/arch/sgi/xbow/odyssey.c
index f425da0ef19..6c69f1ec420 100644
--- a/sys/arch/sgi/xbow/odyssey.c
+++ b/sys/arch/sgi/xbow/odyssey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: odyssey.c,v 1.2 2010/03/07 13:44:26 miod Exp $ */
+/* $OpenBSD: odyssey.c,v 1.3 2010/03/08 20:54:45 miod Exp $ */
/*
* Copyright (c) 2009, 2010 Joel Sing <jsing@openbsd.org>
*
@@ -245,6 +245,7 @@ odyssey_attach(struct device *parent, struct device *self, void *aux)
waa.scrdata = &odyssey_screenlist;
waa.accessops = &odyssey_accessops;
waa.accesscookie = screen;
+ waa.defaultscreens = 0;
config_found(self, &waa, wsemuldisplaydevprint);
}