vserver 1.9.5.x5
[linux-2.6.git] / drivers / scsi / qlogicfc.c
index ef1fdfd..3a192e3 100644 (file)
@@ -815,9 +815,11 @@ int isp2x00_detect(Scsi_Host_Template * tmpt)
           some time before recognizing it is attached to a fabric */
 
 #if ISP2x00_FABRIC
-       for (wait_time = jiffies + 5 * HZ; time_before(jiffies, wait_time);) {
-               barrier();
-               cpu_relax();
+       if (hosts) {
+               for (wait_time = jiffies + 5 * HZ; time_before(jiffies, wait_time);) {
+                       barrier();
+                       cpu_relax();
+               }
        }
 #endif