summaryrefslogtreecommitdiffstats
path: root/sys/dev/mly
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-10-22 17:38:02 +0000
committermsmith <msmith@FreeBSD.org>2001-10-22 17:38:02 +0000
commitdf4d8a6530d299359df92580910714614018e2c2 (patch)
treed13b88387c7b6c62a4b6eaa3e5c33bcfea29c05b /sys/dev/mly
parent7b150e868106c770cc85c9ed6dca12a837ace069 (diff)
downloadFreeBSD-src-df4d8a6530d299359df92580910714614018e2c2.zip
FreeBSD-src-df4d8a6530d299359df92580910714614018e2c2.tar.gz
Fix reversed virtual/physical bus check, whoops!
Submitted by: HIROSHI OOTA <oota@LSi.nec.co.jp>
Diffstat (limited to 'sys/dev/mly')
-rw-r--r--sys/dev/mly/mly.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mly/mly.c b/sys/dev/mly/mly.c
index 9063cce..e7b7a5c 100644
--- a/sys/dev/mly/mly.c
+++ b/sys/dev/mly/mly.c
@@ -847,7 +847,7 @@ mly_rescan_btl(struct mly_softc *sc, int bus, int target)
mci->addr.phys.controller = 0;
mci->timeout.value = 30;
mci->timeout.scale = MLY_TIMEOUT_SECONDS;
- if (bus < sc->mly_controllerinfo->virtual_channels_present) {
+ if (MLY_BUS_IS_VIRTUAL(sc, bus)) {
mc->mc_length = mci->data_size = sizeof(struct mly_ioctl_getlogdevinfovalid);
mci->sub_ioctl = MDACIOCTL_GETLOGDEVINFOVALID;
mci->addr.log.logdev = MLY_LOGDEV_ID(sc, bus, target);
OpenPOWER on IntegriCloud