aboutsummaryrefslogtreecommitdiffstats
path: root/fs/omfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/omfs/inode.c')
-rw-r--r--fs/omfs/inode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c
index 0af5d0af9f32..579d33fedddd 100644
--- a/fs/omfs/inode.c
+++ b/fs/omfs/inode.c
@@ -517,6 +517,12 @@ static int omfs_fill_super(struct super_block *sb, void *data, int silent)
517 (unsigned long long) sbi->s_num_blocks); 517 (unsigned long long) sbi->s_num_blocks);
518 goto out_brelse_bh2; 518 goto out_brelse_bh2;
519 } 519 }
520 if (sbi->s_clustersize < 1 ||
521 sbi->s_clustersize > OMFS_MAX_CLUSTER_SIZE) {
522 printk(KERN_ERR "omfs: cluster size out of range (%d)",
523 sbi->s_clustersize);
524 goto out_brelse_bh2;
525 }
520 526
521 ret = omfs_get_imap(sb); 527 ret = omfs_get_imap(sb);
522 if (ret) 528 if (ret)