summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/pci
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-06-19 22:42:36 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-06-19 22:42:36 +0000
commit2adb8abd14131e004d6818c69ce4a4ce93e069c3 (patch)
tree6b2a0a8ba03704b5525920ed2fec866f1e94f4a0 /sys/arch/macppc/pci
parent2cd40ea3242768ef89d856c7a9788bbc472b3c28 (diff)
Be more strict in the probe routines and actually check ca_nintr and
ca_nreg are large enough for our greedy needs; tweaks and ok kettenis@
Diffstat (limited to 'sys/arch/macppc/pci')
-rw-r--r--sys/arch/macppc/pci/macobio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/macppc/pci/macobio.c b/sys/arch/macppc/pci/macobio.c
index 6d7c6b56ff1..b73d41cb901 100644
--- a/sys/arch/macppc/pci/macobio.c
+++ b/sys/arch/macppc/pci/macobio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: macobio.c,v 1.16 2006/02/14 23:05:28 kettenis Exp $ */
+/* $OpenBSD: macobio.c,v 1.17 2006/06/19 22:42:35 miod Exp $ */
/* $NetBSD: obio.c,v 1.6 1999/05/01 10:36:08 tsubai Exp $ */
/*-
@@ -182,8 +182,8 @@ macobio_attach(struct device *parent, struct device *self, void *aux)
ca.ca_nreg = 0;
ca.ca_nintr = 0;
- ca.ca_reg = 0;
- ca.ca_intr = 0;
+ ca.ca_reg = NULL;
+ ca.ca_intr = NULL;
config_found(self, &ca, macobio_print);
}