diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2024-04-16 08:45:09 +0200 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2024-04-23 08:34:23 +0200 |
commit | e931f6b630ffb22d66caab202a52aa8cbb10c649 (patch) | |
tree | 603452c63ad73011ca2c1b0ef2d11ae548e6d1ff /fs/ntfs3/fslog.c | |
parent | fs/ntfs3: Check 'folio' pointer for NULL (diff) | |
download | linux-e931f6b630ffb22d66caab202a52aa8cbb10c649.tar.xz linux-e931f6b630ffb22d66caab202a52aa8cbb10c649.zip |
fs/ntfs3: Use 64 bit variable to avoid 32 bit overflow
For example, in the expression:
vbo = 2 * vbo + skip
Fixes: b46acd6a6a627 ("fs/ntfs3: Add NTFS journal")
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3/fslog.c')
-rw-r--r-- | fs/ntfs3/fslog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ntfs3/fslog.c b/fs/ntfs3/fslog.c index d9d08823de62..d7807d255dfe 100644 --- a/fs/ntfs3/fslog.c +++ b/fs/ntfs3/fslog.c @@ -1184,7 +1184,8 @@ out: 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. */ |