diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-09-21 18:40:57 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-09-21 18:40:57 +0300 |
commit | 48062bb2647711a5ed7605f485dfcb8fc9938d9c (patch) | |
tree | beb01f33dd32183d2e2aff80a30f447f65a10923 /fs | |
parent | 60891ec99e141b74544d11e897a245ef06263052 (diff) | |
parent | 2e9ceb6728f1dc2fa4b5d08f37d88cbc49a20a62 (diff) | |
download | linux-48062bb2647711a5ed7605f485dfcb8fc9938d9c.tar.xz |
Merge tag 'exfat-for-6.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat
Pull exfat fix from Namjae Jeon:
- fix integer overflow on large partitions
* tag 'exfat-for-6.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat:
exfat: fix overflow for large capacity partition
Diffstat (limited to 'fs')
-rw-r--r-- | fs/exfat/fatent.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/exfat/fatent.c b/fs/exfat/fatent.c index ee0b7cf51157..41ae4cce1f42 100644 --- a/fs/exfat/fatent.c +++ b/fs/exfat/fatent.c @@ -270,8 +270,7 @@ int exfat_zeroed_cluster(struct inode *dir, unsigned int clu) struct super_block *sb = dir->i_sb; struct exfat_sb_info *sbi = EXFAT_SB(sb); struct buffer_head *bh; - sector_t blknr, last_blknr; - int i; + sector_t blknr, last_blknr, i; blknr = exfat_cluster_to_sector(sbi, clu); last_blknr = blknr + sbi->sect_per_clus; |