summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-02-11 14:07:00 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2010-02-11 14:07:00 -0800
commitffaa60d5fe1d30b618b0feb22c79486c26a16ea0 (patch)
treee4c2d26c7565c7cee36065753db09467a27e0339 /drivers
parentefa82bab8e3509bb2c4a8044de5909b8bab96cfd (diff)
parent531c2dc70d339c5dfa8c3eb628c3459dc6f3a075 (diff)
downloadblackbird-op-linux-ffaa60d5fe1d30b618b0feb22c79486c26a16ea0.tar.gz
blackbird-op-linux-ffaa60d5fe1d30b618b0feb22c79486c26a16ea0.zip
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/linux-2.6-block: cciss: Make cciss_seq_show handle holes in the h->drv[] array cfq-iosched: split seeky coop queues after one slice
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/cciss.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 873e594860d3..9291614ac6b7 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -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;
OpenPOWER on IntegriCloud