]> err.no Git - linux-2.6/blobdiff - fs/ext4/super.c
fix inode_table test in ext234_check_descriptors
[linux-2.6] / fs / ext4 / super.c
index 75adbb64e028e6c1e3d3acfb9baabdd2601ac9cd..4550b83ab1c99056db69654fc43539e4cce7e7aa 100644 (file)
@@ -1283,7 +1283,7 @@ static int ext4_check_descriptors (struct super_block * sb)
                }
                inode_table = ext4_inode_table(sb, gdp);
                if (inode_table < first_block ||
-                   inode_table + sbi->s_itb_per_group > last_block)
+                   inode_table + sbi->s_itb_per_group - 1 > last_block)
                {
                        ext4_error (sb, "ext4_check_descriptors",
                                    "Inode table for group %d"