cciss: Make cciss_seq_show handle holes in the h->drv[] array

It is possible (and expected) for there to be holes in the h->drv[]
array, that is, some elements may be NULL pointers. cciss_seq_show
needs to be made aware of this possibility to avoid an Oops.

To reproduce the Oops which this fixes:

1) Create two "arrays" in the Array Configuratino Utility and
several logical drives on each array.
2) cat /proc/driver/cciss/cciss* in an infinite loop
3) delete some of the logical drives in the first "array."

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Cc: stable@kernel.org
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

authored by Stephen M. Cameron and committed by Jens Axboe 531c2dc7 ae54abed

+3
+3
drivers/block/cciss.c
··· 337 337 if (*pos > h->highest_lun) 338 338 return 0; 339 339 340 + if (drv == NULL) /* it's possible for h->drv[] to have holes. */ 341 + return 0; 342 + 340 343 if (drv->heads == 0) 341 344 return 0; 342 345