Whamcloud - gitweb
e2image: correct group descriptors size in ext2fs_image_super_read()
authorEmoly Liu <emoly@whamcloud.com>
Fri, 14 Jul 2023 00:59:58 +0000 (10:59 +1000)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 8 Feb 2024 15:47:08 +0000 (10:47 -0500)
commit633ab26eefe1b037eaba82d9a3555eb712c82345
treefe515d99a65ed6ba6f2c3cfbc400fa95c260fa1d
parent1ac0061609c69cc9fe01bd116915632c2bc7c497
e2image: correct group descriptors size in ext2fs_image_super_read()

In function ext2fs_image_super_read(), the size of block group
descriptors should be (fs->blocksize * fs->desc_blocks), but not
(fs->blocksize * fs->group_desc_count).

Signed-off-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/20230714005958.442487-1-dongyangli@ddn.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/imager.c