linux/fs/ntfs3
Dan Carpenter 926034353d
fs/ntfs3: Don't clear upper bits accidentally in log_replay()
The "vcn" variable is a 64 bit.  The "log->clst_per_page" variable is a
u32.  This means that the mask accidentally clears out the high 32 bits
when it was only supposed to clear some low bits.  Fix this by adding a
cast to u64.

Fixes: b46acd6a6a ("fs/ntfs3: Add NTFS journal")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
2022-06-10 19:14:08 +03:00
..
lib fs/ntfs3: Add missing header and guards to lib/ headers 2021-09-13 19:41:44 +03:00
attrib.c fs/ntfs3: Remove redundant assignment to variable vcn 2022-06-08 18:40:32 +03:00
attrlist.c fs/ntfs3: Add sync flag to ntfs_sb_write_run and al_update 2021-09-21 18:37:01 +03:00
bitfunc.c fs/ntfs3: Remove a useless shadowing variable 2021-09-23 19:05:46 +03:00
bitmap.c fs/ntfs3: Remove a useless test 2022-06-07 19:40:14 +03:00
debug.h fs/ntfs3. Add forward declarations for structs to debug.h 2021-09-13 19:41:43 +03:00
dir.c fs/ntfs3: Rework ntfs_utf16_to_nls 2021-10-11 19:28:04 +03:00
file.c fs/ntfs3: Remove redundant assignment to variable frame 2022-06-07 19:40:24 +03:00
frecord.c fs/ntfs3: Refactor ni_try_remove_attr_list function 2022-06-06 18:38:57 +03:00
fslog.c fs/ntfs3: Don't clear upper bits accidentally in log_replay() 2022-06-10 19:14:08 +03:00
fsntfs.c fs/ntfs3: remove unnecessary NULL check 2022-02-02 07:50:55 -07:00
index.c fs/ntfs3: Fix using uninitialized value n when calling indx_read 2022-06-09 19:16:08 +03:00
inode.c fs/ntfs3: Fix missing i_op in ntfs_read_mft 2022-06-06 18:38:58 +03:00
Kconfig
lznt.c fs/ntfs3: Remove tabs before spaces from comment 2021-09-16 17:01:36 +03:00
Makefile
namei.c fs/ntfs3: Move ni_lock_dir and ni_unlock into ntfs_create_inode 2021-09-24 17:39:57 +03:00
ntfs_fs.h mm: remove cleancache 2022-01-22 08:33:38 +02:00
ntfs.h fs/ntfs3: Change max hardlinks limit to 4000 2021-09-21 18:37:01 +03:00
record.c fs/ntfs3: Refactor ni_try_remove_attr_list function 2022-06-06 18:38:57 +03:00
run.c fs/ntfs3: Remove unneeded header files from c files 2021-09-13 19:41:46 +03:00
super.c fs/ntfs3: Fix double free on remount 2022-06-06 18:38:57 +03:00
upcase.c fs/ntfs3: Change right headers to upcase.c 2021-09-13 19:41:45 +03:00
xattr.c fs/ntfs3: Use the same order for acl pointer check in ntfs_init_acl 2022-06-09 19:16:18 +03:00