summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorfvdl <fvdl@NetBSD.org>2003-05-01 23:00:20 +0000
committerfvdl <fvdl@NetBSD.org>2003-05-01 23:00:20 +0000
commitdf29adfb0eca6f89adfcdc2bdbe9e2a669747e58 (patch)
treedab76a7eec0395c3d3482e0fcb3d62c425bfdfd6 /sys/dev
parentcf437d291f946bcf65411c0dbf037e534f099be9 (diff)
Don't reference channel_b if it's not a twin channel adapter.
From MINOURA Makoto.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/aic7xxx_osm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/aic7xxx_osm.c b/sys/dev/ic/aic7xxx_osm.c
index 063c3d24d59..2ec4cd03efc 100644
--- a/sys/dev/ic/aic7xxx_osm.c
+++ b/sys/dev/ic/aic7xxx_osm.c
@@ -1,4 +1,4 @@
-/* $NetBSD: aic7xxx_osm.c,v 1.7 2003/04/21 19:59:48 fvdl Exp $ */
+/* $NetBSD: aic7xxx_osm.c,v 1.8 2003/05/01 23:00:20 fvdl Exp $ */
/*
* Bus independent FreeBSD shim for the aic7xxx based adaptec SCSI controllers
@@ -105,8 +105,9 @@ ahc_attach(struct ahc_softc *ahc)
ahc->sc_child_b = config_found((void *)&ahc->sc_dev,
&ahc->sc_channel_b, scsiprint);
} else {
- ahc->sc_child = config_found((void *)&ahc->sc_dev,
- &ahc->sc_channel_b, scsiprint);
+ if (ahc->features & AHC_TWIN)
+ ahc->sc_child = config_found((void *)&ahc->sc_dev,
+ &ahc->sc_channel_b, scsiprint);
ahc->sc_child_b = config_found((void *)&ahc->sc_dev,
&ahc->sc_channel, scsiprint);
}