diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-19 22:42:36 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-19 22:42:36 +0000 |
commit | 2adb8abd14131e004d6818c69ce4a4ce93e069c3 (patch) | |
tree | 6b2a0a8ba03704b5525920ed2fec866f1e94f4a0 /sys/arch/macppc/dev/mediabay.c | |
parent | 2cd40ea3242768ef89d856c7a9788bbc472b3c28 (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/dev/mediabay.c')
-rw-r--r-- | sys/arch/macppc/dev/mediabay.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/mediabay.c b/sys/arch/macppc/dev/mediabay.c index b4ec6a0d5f6..9eb596113e2 100644 --- a/sys/arch/macppc/dev/mediabay.c +++ b/sys/arch/macppc/dev/mediabay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mediabay.c,v 1.2 2004/06/14 00:32:31 deraadt Exp $ */ +/* $OpenBSD: mediabay.c,v 1.3 2006/06/19 22:42:33 miod Exp $ */ /* $NetBSD: mediabay.c,v 1.9 2003/07/15 02:43:29 lukem Exp $ */ /*- @@ -95,7 +95,8 @@ mediabay_match(parent, v, aux) { struct confargs *ca = aux; - if (strcmp(ca->ca_name, "media-bay") == 0) + if (strcmp(ca->ca_name, "media-bay") == 0 && + ca->ca_nintr >= 4 && ca->ca_nreg >= 8) return 1; return 0; |