summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
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) {