Merge branch 'master' into for-2.6.34
[linux-2.6-block.git] / drivers / block / cciss.c
index 8df23c732c4601182b7840a2c92f56f6c84f0a26..86acdca5d0cea88366faaae2f3a7ef8e4fa682e3 100644 (file)
@@ -337,6 +337,9 @@ static int cciss_seq_show(struct seq_file *seq, void *v)
        if (*pos > h->highest_lun)
                return 0;
 
+       if (drv == NULL) /* it's possible for h->drv[] to have holes. */
+               return 0;
+
        if (drv->heads == 0)
                return 0;