exfat: fix overflow in sector and cluster conversion
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Tue, 13 Dec 2022 01:40:32 +0000 (09:40 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Tue, 13 Dec 2022 11:17:11 +0000 (20:17 +0900)
commit40306b4d1ba25970dafd53432e8daa5d591ebd99
treeb150d91967727c957e09b02c9fbbf783ca7d459a
parentf7cde96710a4362dca199458d3de04f631178453
exfat: fix overflow in sector and cluster conversion

According to the exFAT specification, there are at most 2^32-11
clusters in a volume. so using 'int' is not enough for cluster
index, the return value type of exfat_sector_to_cluster() should
be 'unsigned int'.

Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/exfat_fs.h