Skip to content

Commit e931f6b

Browse files
fs/ntfs3: Use 64 bit variable to avoid 32 bit overflow
For example, in the expression: vbo = 2 * vbo + skip Fixes: b46acd6 ("fs/ntfs3: Add NTFS journal") Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
1 parent 1cd6c96 commit e931f6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/ntfs3/fslog.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,8 @@ static int read_log_page(struct ntfs_log *log, u32 vbo,
11841184
static int log_read_rst(struct ntfs_log *log, bool first,
11851185
struct restart_info *info)
11861186
{
1187-
u32 skip, vbo;
1187+
u32 skip;
1188+
u64 vbo;
11881189
struct RESTART_HDR *r_page = NULL;
11891190

11901191
/* Determine which restart area we are looking for. */

0 commit comments

Comments
 (0)