mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
fs/ntfs3: Use 64 bit variable to avoid 32 bit overflow
[ Upstream commit e931f6b630ffb22d66caab202a52aa8cbb10c649 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
6c8054d590
commit
109d85a983
1 changed files with 2 additions and 1 deletions
|
@ -1184,7 +1184,8 @@ out:
|
||||||
static int log_read_rst(struct ntfs_log *log, bool first,
|
static int log_read_rst(struct ntfs_log *log, bool first,
|
||||||
struct restart_info *info)
|
struct restart_info *info)
|
||||||
{
|
{
|
||||||
u32 skip, vbo;
|
u32 skip;
|
||||||
|
u64 vbo;
|
||||||
struct RESTART_HDR *r_page = NULL;
|
struct RESTART_HDR *r_page = NULL;
|
||||||
|
|
||||||
/* Determine which restart area we are looking for. */
|
/* Determine which restart area we are looking for. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue