]> git.baikalelectronics.ru Git - kernel.git/commit
ext2: fix block range in ext2_data_block_valid()
authorChengguang Xu <cgxu519@zoho.com.cn>
Tue, 23 Jul 2019 11:21:54 +0000 (19:21 +0800)
committerJan Kara <jack@suse.cz>
Wed, 31 Jul 2019 10:04:42 +0000 (12:04 +0200)
commitc20c6c173e475a3aec9efe319d8e3f22a5122281
tree8ff04266c012c2ac4a3449149a9da23e3d489952
parentccd6b474b4205440d00851915ec1836c6e9d60b5
ext2: fix block range in ext2_data_block_valid()

For block validity we should check the block range
from start_block to start_block + count - 1, so fix
the range in ext2_data_block_valid() and also modify
the count argument properly in calling place.

Signed-off-by: Chengguang Xu <cgxu519@zoho.com.cn>
Link: https://lore.kernel.org/r/20190723112155.20329-1-cgxu519@zoho.com.cn
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/balloc.c
fs/ext2/xattr.c