summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-02-11 23:07:00 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2010-02-11 23:07:00 +0100
commitffaa60d5fe1d30b618b0feb22c79486c26a16ea0 (patch)
treee4c2d26c7565c7cee36065753db09467a27e0339 /drivers
parentMerge branch 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6 (diff)
parentcciss: Make cciss_seq_show handle holes in the h->drv[] array (diff)
downloadlinux-ffaa60d5fe1d30b618b0feb22c79486c26a16ea0.tar.xz
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;