diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-11 22:07:00 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-11 22:07:00 (GMT) |
commit | ffaa60d5fe1d30b618b0feb22c79486c26a16ea0 (patch) | |
tree | e4c2d26c7565c7cee36065753db09467a27e0339 /drivers | |
parent | efa82bab8e3509bb2c4a8044de5909b8bab96cfd (diff) | |
parent | 531c2dc70d339c5dfa8c3eb628c3459dc6f3a075 (diff) | |
download | linux-fsl-qoriq-ffaa60d5fe1d30b618b0feb22c79486c26a16ea0.tar.xz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 873e594..9291614 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; |