commit | b4f724c8a90987d4785fd1accfe69c125567be39 | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Thu Jul 24 22:19:27 2014 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Thu Jul 24 22:19:27 2014 -0400 |
tree | 42a13c32119aa6083ec16feceb5d6dab220108d5 | |
parent | b4a40883385d610c55c11de52002bd8f9c2d790e [diff] |
e2fsck: fix off-by-one bounds check on group number Since fs->group_desc_count is the number of block groups, the number of the last group is always one less than this count. Fix the bounds check to reflect that. This flaw shouldn't have any user-visible side effects, since the block bitmap test based on last_grp later on can handle overbig block numbers. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>