diff options
author | ps <ps@FreeBSD.org> | 2004-06-22 17:39:57 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2004-06-22 17:39:57 +0000 |
commit | a1bdd1093ee6dc0b53449be28aec2eebf09e3dd1 (patch) | |
tree | e48edf72df18f38df633aba3af180270f686688f /sys/dev/ciss | |
parent | 211ce911d54b19971c181b448943c9921fa42f45 (diff) | |
download | FreeBSD-src-a1bdd1093ee6dc0b53449be28aec2eebf09e3dd1.zip FreeBSD-src-a1bdd1093ee6dc0b53449be28aec2eebf09e3dd1.tar.gz |
Use the maximum physical bus when rescanning those targets. This
fixes a panic on cards which do not have any drives attached.
Diffstat (limited to 'sys/dev/ciss')
-rw-r--r-- | sys/dev/ciss/ciss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index 3b33ab9..707d0d6 100644 --- a/sys/dev/ciss/ciss.c +++ b/sys/dev/ciss/ciss.c @@ -2493,7 +2493,7 @@ ciss_cam_rescan_all(struct ciss_softc *sc) for (i = 0; i < sc->ciss_max_logical_bus; i++) ciss_cam_rescan_target(sc, i, CAM_TARGET_WILDCARD); /* Rescan the physical buses */ - for (i = CISS_PHYSICAL_BASE; i < sc->ciss_max_logical_bus + + for (i = CISS_PHYSICAL_BASE; i < sc->ciss_max_physical_bus + CISS_PHYSICAL_BASE; i++) ciss_cam_rescan_target(sc, i, CAM_TARGET_WILDCARD); } |