diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext3/super.c | 2 | ||||
-rw-r--r-- | fs/ext4/super.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index de55da9e28ba..cb14de1502c3 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
@@ -1676,7 +1676,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent) | |||
1676 | sbi->s_blocks_per_group = le32_to_cpu(es->s_blocks_per_group); | 1676 | sbi->s_blocks_per_group = le32_to_cpu(es->s_blocks_per_group); |
1677 | sbi->s_frags_per_group = le32_to_cpu(es->s_frags_per_group); | 1677 | sbi->s_frags_per_group = le32_to_cpu(es->s_frags_per_group); |
1678 | sbi->s_inodes_per_group = le32_to_cpu(es->s_inodes_per_group); | 1678 | sbi->s_inodes_per_group = le32_to_cpu(es->s_inodes_per_group); |
1679 | if (EXT3_INODE_SIZE(sb) == 0) | 1679 | if (EXT3_INODE_SIZE(sb) == 0 || EXT3_INODES_PER_GROUP(sb) == 0) |
1680 | goto cantfind_ext3; | 1680 | goto cantfind_ext3; |
1681 | sbi->s_inodes_per_block = blocksize / EXT3_INODE_SIZE(sb); | 1681 | sbi->s_inodes_per_block = blocksize / EXT3_INODE_SIZE(sb); |
1682 | if (sbi->s_inodes_per_block == 0) | 1682 | if (sbi->s_inodes_per_block == 0) |
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 8031dc0e24e5..1ca0f546c466 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -1797,7 +1797,7 @@ static int ext4_fill_super (struct super_block *sb, void *data, int silent) | |||
1797 | sbi->s_desc_size = EXT4_MIN_DESC_SIZE; | 1797 | sbi->s_desc_size = EXT4_MIN_DESC_SIZE; |
1798 | sbi->s_blocks_per_group = le32_to_cpu(es->s_blocks_per_group); | 1798 | sbi->s_blocks_per_group = le32_to_cpu(es->s_blocks_per_group); |
1799 | sbi->s_inodes_per_group = le32_to_cpu(es->s_inodes_per_group); | 1799 | sbi->s_inodes_per_group = le32_to_cpu(es->s_inodes_per_group); |
1800 | if (EXT4_INODE_SIZE(sb) == 0) | 1800 | if (EXT4_INODE_SIZE(sb) == 0 || EXT4_INODES_PER_GROUP(sb) == 0) |
1801 | goto cantfind_ext4; | 1801 | goto cantfind_ext4; |
1802 | sbi->s_inodes_per_block = blocksize / EXT4_INODE_SIZE(sb); | 1802 | sbi->s_inodes_per_block = blocksize / EXT4_INODE_SIZE(sb); |
1803 | if (sbi->s_inodes_per_block == 0) | 1803 | if (sbi->s_inodes_per_block == 0) |