summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-11-27 07:28:58 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-11-27 07:28:58 +0000
commita2fa7086eb83ca2e23726a92bcef3907b7d397bf (patch)
tree34f50fdee46d8f33bbab98ce3dd316d306336340 /sys/dev
parent754ac0d779c450b8b017c5f39fe7006ead756fea (diff)
Prevent scsi pass-through busses from attaching when a board is marked
broken. ok dlg@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/ami.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index 9384670dfcc..ef16d0c9ac4 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.99 2005/11/27 04:26:14 krw Exp $ */
+/* $OpenBSD: ami.c,v 1.100 2005/11/27 07:28:57 marco Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -579,6 +579,10 @@ ami_attach(struct ami_softc *sc)
config_found(&sc->sc_dev, &sc->sc_link, scsiprint);
+ /* can't do pass-through on broken device for now */
+ if (sc->sc_flags & AMI_BROKEN)
+ return (0);
+
rsc = malloc(sizeof(struct ami_rawsoftc) * sc->sc_channels,
M_DEVBUF, M_NOWAIT);
if (!rsc) {