mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
fs/ntfs3: Use 64 bit variable to avoid 32 bit overflow
For example, in the expression:
vbo = 2 * vbo + skip
Fixes: b46acd6a6a
("fs/ntfs3: Add NTFS journal")
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
parent
1cd6c96219
commit
e931f6b630
1 changed files with 2 additions and 1 deletions
|
@ -1184,7 +1184,8 @@ static int read_log_page(struct ntfs_log *log, u32 vbo,
|
|||
static int log_read_rst(struct ntfs_log *log, bool first,
|
||||
struct restart_info *info)
|
||||
{
|
||||
u32 skip, vbo;
|
||||
u32 skip;
|
||||
u64 vbo;
|
||||
struct RESTART_HDR *r_page = NULL;
|
||||
|
||||
/* Determine which restart area we are looking for. */
|
||||
|
|
Loading…
Reference in a new issue