]> git.ipfire.org Git - thirdparty/linux.git/commit
exfat: remove the check for infinite cluster chain loop
authorChi Zhiling <chizhiling@kylinos.cn>
Wed, 14 Jan 2026 12:12:41 +0000 (20:12 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Thu, 12 Feb 2026 12:21:49 +0000 (21:21 +0900)
commit2e21557d5422a24e0c2c12455ae8b9f10045e3d5
tree5e4a3ae97c3c4a0643791e881e13d4662d352433
parent5e205c484b1feb3297f78351f3866cb60afe004b
exfat: remove the check for infinite cluster chain loop

The infinite cluster chain loop check is not work because the
loop will terminate when fclus reaches the parameter cluster,
and the parameter cluster value is never greater than
ei->valid_size.

The following relationship holds:
'fclus' < 'cluster' ≤ ei->valid_size ≤ sb->num_clusters

The check would only be triggered if a cluster number greater than
sb->num_clusters is passed, but no caller currently does this.

Signed-off-by: Chi Zhiling <chizhiling@kylinos.cn>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/cache.c